From 753fa8bf534d7e3747f9e9e0a5d549681e708f37 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 5f9dd449c..b9217e7ef 100644 --- a/solara/server/app.py +++ b/solara/server/app.py @@ -384,7 +384,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()