Exit server process on config.yaml read errors
| @@ -34,8 +34,9 @@ function getConfig() { | ||
| 34 | 34 | CACHED_CONFIG = config; |
| 35 | 35 | return config; |
| 36 | 36 | } catch (error) { |
| 37 | 37 | 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); | |
| 39 | 40 | } |
| 40 | 41 | } |
| 41 | 42 | |