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() {
34 CACHED_CONFIG = config;34 CACHED_CONFIG = config;
35 return config;35 return config;
36 } catch (error) {36 } catch (error) {
37 console.warn('Failed to read config.yaml');37 console.error(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);
39 }40 }
40}41}
4142