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:
Hornwitser authored and GitHub committed 2021-06-14 12:07:59 +02:00
1 parent ddaaf15b2e
commit 31f1099dc0
3 files changed
+11 -3

No files matched your search

+1 -1
View File
@@ -274,7 +274,7 @@ async function initialize() {
await parameters.masterConfig.init();
} else {
throw err;
throw new libErrors.StartupError(`Failed to load ${parameters.masterConfigPath}: ${err.message}`);
}
}