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