mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix: 🚨 Throw new error instead of using process.exit()
This commit is contained in:
parent
bf42f3d677
commit
935ad72936
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ if (!parsed.success) {
|
||||||
|
|
||||||
console.info(errorMessage);
|
console.info(errorMessage);
|
||||||
|
|
||||||
process.exit(1);
|
throw new Error("Configuration file is invalid.");
|
||||||
}
|
}
|
||||||
|
|
||||||
const exportedConfig = parsed.data;
|
const exportedConfig = parsed.data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue