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 Feb 16, 2024
1 parent 8c4d072 commit c1e0fd1
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 @@ -362,7 +362,12 @@ def on_msg(msg):

container = ipyvuetify.Html(tag="div")
context.container = container
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 c1e0fd1

Please sign in to comment.