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>

865114fb1c24a55cdd32aafd74b885b55fb8d6c4

san-tian <58291765+san-tian@users.noreply.github.com>

Signed
1 files changed, +1 -1Ignore whitespace
src/config-init.js+1 -1
@@ -238,7 +238,7 @@ export function addMissingConfigValues(configPath) {
238238
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}
244244