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 Mar 11, 2024
1 parent ed0ea89 commit 0ab14df
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 @@ -395,7 +395,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 0ab14df

Please sign in to comment.