Skip to content

Commit c81821f

Browse files
committed
Add message about setting input value
1 parent 43045cc commit c81821f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shiny/reactive.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ def get(self) -> T:
6060

6161
def set(self, value: T) -> bool:
6262
if self._read_only:
63-
raise RuntimeError("Can't set read-only reactive.Value")
63+
raise RuntimeError(
64+
"Can't set read-only reactive.Value. If you are trying to set an input value, use `update_xxx()` instead."
65+
)
6466
return self._set(value)
6567

6668
# The ._set() method allows setting read-only Value objects. This is used when the

0 commit comments

Comments
 (0)