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".
This commit is contained in:
Hornwitser committed 2021-03-01 15:03:25 +01:00
1 parent 4efd09de31
commit a3729504e5
1 file changed
+1 -1
+1 -1
View File
@@ -72,4 +72,4 @@ async function load() {
ReactDOM.render(<App control={control}/>, document.getElementById("root"));
}
load().catch((err) => logger.fatal(err));
load().catch((err) => logger.fatal(err.stack));