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}`);
}
}