mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Don't overwrite user config if parse fails
This commit is contained in:
parent
3143f7b963
commit
062ef6b397
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ const _importConf = () => {
|
|||
try {
|
||||
userCfg = JSON.parse(readFileSync(cfgPath, 'utf8'));
|
||||
} catch (err) {
|
||||
_write(cfgPath, defaultCfgRaw);
|
||||
notify("Couldn't parse config file. Using default config instead.");
|
||||
userCfg = JSON.parse(defaultCfgRaw);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue