Exit server process on config.yaml read errors
| @@ -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 | } |
| 41 | 42 | ||