mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 16:23:12 +09:00
Improve error message logged for config load error
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -354,7 +354,7 @@ async function initialize(): Promise<InitializeParameters> {
|
|||||||
controllerConfig = new lib.ControllerConfig("controller", undefined, controllerConfigPath);
|
controllerConfig = new lib.ControllerConfig("controller", undefined, controllerConfigPath);
|
||||||
|
|
||||||
} else {
|
} 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
@@ -222,7 +222,7 @@ async function startControl() {
|
|||||||
controlConfig = new lib.ControlConfig("control", undefined, controlConfigPath);
|
controlConfig = new lib.ControlConfig("control", undefined, controlConfigPath);
|
||||||
|
|
||||||
} else {
|
} 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}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ async function startHost() {
|
|||||||
hostConfig = new lib.HostConfig("host", undefined, hostConfigPath);
|
hostConfig = new lib.HostConfig("host", undefined, hostConfigPath);
|
||||||
|
|
||||||
} else {
|
} 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}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user