diff --git a/packages/controller/controller.ts b/packages/controller/controller.ts index 3aa41acf..f986423c 100644 --- a/packages/controller/controller.ts +++ b/packages/controller/controller.ts @@ -354,7 +354,7 @@ async function initialize(): Promise { 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}`); } } diff --git a/packages/ctl/ctl.ts b/packages/ctl/ctl.ts index 8945b500..f2fab5b7 100755 --- a/packages/ctl/ctl.ts +++ b/packages/ctl/ctl.ts @@ -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}`); } } diff --git a/packages/host/host.ts b/packages/host/host.ts index c40df9f1..6e6bb779 100755 --- a/packages/host/host.ts +++ b/packages/host/host.ts @@ -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}`); } }