mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 21:28:40 -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 {
|
try {
|
||||||
userCfg = JSON.parse(readFileSync(cfgPath, 'utf8'));
|
userCfg = JSON.parse(readFileSync(cfgPath, 'utf8'));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
_write(cfgPath, defaultCfgRaw);
|
notify("Couldn't parse config file. Using default config instead.");
|
||||||
userCfg = JSON.parse(defaultCfgRaw);
|
userCfg = JSON.parse(defaultCfgRaw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue