Skip to content

Commit

Permalink
refactor: log path when running app fails
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Apr 15, 2024
1 parent f9752db commit c47831c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion solara/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,12 @@ def on_msg(msg):
themes = args.get("themes")
dark = args.get("dark")
load_themes(themes, dark)
load_app_widget(None, app, path)
try:
load_app_widget(None, app, path)
except Exception as e:
msg = f"Error loading app: from path {path} and app {app_name}"
logger.exception(msg)
raise RuntimeError(msg) from e
comm.send({"method": "finished", "widget_id": context.container._model_id})
elif method == "app-status":
context = kernel_context.get_current_context()
Expand Down

0 comments on commit c47831c

Please sign in to comment.