From a3729504e5bfd61dd80a8db8b25db5a6cb47d5d9 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Mon, 1 Mar 2021 14:16:30 +0100 Subject: [PATCH] Log error stack on bootstrap failure Log the stack of the error caught during failure to load the web interface. This ensure the error is printed to the console instead of "[fatal] undefined". --- packages/web_ui/src/bootstrap.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web_ui/src/bootstrap.jsx b/packages/web_ui/src/bootstrap.jsx index f9fafb14..611e931f 100644 --- a/packages/web_ui/src/bootstrap.jsx +++ b/packages/web_ui/src/bootstrap.jsx @@ -72,4 +72,4 @@ async function load() { ReactDOM.render(, document.getElementById("root")); } -load().catch((err) => logger.fatal(err)); +load().catch((err) => logger.fatal(err.stack));