Skip to content

Commit

Permalink
chore(render.display): Improve error message (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie authored Jan 19, 2024
1 parent 16797a7 commit f723c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shiny/render/_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def render(self) -> JsonifiableDict | None:
ret = sync_value_fn()
if ret is not None:
raise RuntimeError(
"@render.display functions should not return values. (`None` is allowed)."
"@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.)"
)
finally:
sys.displayhook = orig_displayhook
Expand Down

0 comments on commit f723c2b

Please sign in to comment.