Improve error message logged for config load error

This commit is contained in:
Cooldude2606 committed 2025-05-12 21:32:44 +01:00
1 parent 726a3538c2
commit 515093abd2
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -354,7 +354,7 @@ async function initialize(): Promise<InitializeParameters> {
controllerConfig = new lib.ControllerConfig("controller", undefined, controllerConfigPath);
} else {
throw new lib.StartupError(`Failed to load ${controllerConfigPath}: ${err.message}`);
throw new lib.StartupError(`Failed to load ${controllerConfigPath}: ${err.stack ?? err.message ?? err}`);
}
}
+1 -1
View File
@@ -222,7 +222,7 @@ async function startControl() {
controlConfig = new lib.ControlConfig("control", undefined, controlConfigPath);
} else {
throw new lib.StartupError(`Failed to load ${args.config}: ${err.message}`);
throw new lib.StartupError(`Failed to load ${args.config}: ${err.stack ?? err.message ?? err}`);
}
}
+1 -1
View File
@@ -180,7 +180,7 @@ async function startHost() {
hostConfig = new lib.HostConfig("host", undefined, hostConfigPath);
} else {
throw new lib.StartupError(`Failed to load ${args.config}: ${err.message}`);
throw new lib.StartupError(`Failed to load ${args.config}: ${err.stack ?? err.message ?? err}`);
}
}