mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-12 10:00:36 +01:00
Exit server process on config.yaml read errors
This commit is contained in:
parent
8be21fc5c4
commit
ff834efde3
@ -34,8 +34,9 @@ function getConfig() {
|
||||
CACHED_CONFIG = config;
|
||||
return config;
|
||||
} catch (error) {
|
||||
console.warn('Failed to read config.yaml');
|
||||
return {};
|
||||
console.error(color.red('FATAL: Failed to read config.yaml. Please check the file for syntax errors.'));
|
||||
console.error(error.message);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user