Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(render.display): Improve error message #1020

Merged
merged 2 commits into from
Jan 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion shiny/render/_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,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, the function body should include Shiny Express code that will be dynamically rendered in the app. (`None` is a valid return value.)"
schloerke marked this conversation as resolved.
Show resolved Hide resolved
)
finally:
sys.displayhook = orig_displayhook
Expand Down
Loading