Replace error with warn when failing to write config.yaml * try to modify config.yaml at start instead of modify it * replace error with warn when failing to write config.yaml --------- Co-authored-by: ccss <ccss>
Signed| @@ -238,7 +238,7 @@ export function addMissingConfigValues(configPath) { | |||
| 238 | 238 | ||
| 239 | fs.writeFileSync(configPath, yaml.stringify(config)); | 239 | fs.writeFileSync(configPath, yaml.stringify(config)); |
| 240 | } catch (error) { | 240 | } catch (error) { |
| 241 | console.error(color.red('FATAL: Could not add missing config values to config.yaml'), error); | 241 | console.warn(color.yellow('Could not add missing config values to config.yaml'), error); |
| 242 | } | 242 | } |
| 243 | } | 243 | } |
| 244 | 244 | ||