Skip to content

Commit f723c2b

Browse files
authored
chore(render.display): Improve error message (#1020)
1 parent 16797a7 commit f723c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shiny/render/_display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def render(self) -> JsonifiableDict | None:
9393
ret = sync_value_fn()
9494
if ret is not None:
9595
raise RuntimeError(
96-
"@render.display functions should not return values. (`None` is allowed)."
96+
"@render.display functions should not return values. Instead, @render.display dynamically renders every printable line within the function body. (`None` is a valid return value.)"
9797
)
9898
finally:
9999
sys.displayhook = orig_displayhook

0 commit comments

Comments
 (0)