mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 08:03:13 +09:00
Expect error loading configs (#388)
Rethrow error loading configs as StartupError as these are most likely a result of user error.
This commit is contained in:
1 parent
ddaaf15b2e
commit
31f1099dc0
3 files changed
+11
-3
No files matched your search
+1
-1
@@ -1082,7 +1082,7 @@ async function startControl() {
|
||||
await controlConfig.init();
|
||||
|
||||
} else {
|
||||
throw err;
|
||||
throw new libErrors.StartupError(`Failed to load ${args.config}: ${err.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user