From 64737593116e97b1b863e879948643f775bad2f6 Mon Sep 17 00:00:00 2001 From: "Maarten A. Breddels" Date: Fri, 8 Dec 2023 10:54:22 +0100 Subject: [PATCH] refactor: log path when running app fails --- solara/server/app.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/solara/server/app.py b/solara/server/app.py index 6df821c22..b2288a5f6 100644 --- a/solara/server/app.py +++ b/solara/server/app.py @@ -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()