Exit server process on config.yaml read errors

ff834efde3bd173036ebef30790d4fc1c4ba0183

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -2Ignore whitespace
src/util.js+3 -2
@@ -34,8 +34,9 @@ function getConfig() {
3434 CACHED_CONFIG = config;
3535 return config;
3636 } catch (error) {
3737 console.warnerror(color.red('FATAL: Failed to read config.yaml. Please check the file for syntax errors.'));
38- return {};
38+ console.error(error.message);
39+ process.exit(1);
3940 }
4041}
4142