Write contents of default config to hyper.js (#2128)

This commit is contained in:
Albin Ekblom 2017-08-30 14:33:31 +02:00 committed by Leo Lamprecht
parent 6b886afc36
commit 26abc6bd15

View file

@ -26,7 +26,7 @@ const _importConf = function () {
const _cfgPath = readFileSync(cfgPath, 'utf8'); const _cfgPath = readFileSync(cfgPath, 'utf8');
return {userCfg: _cfgPath, defaultCfg: _defaultCfg}; return {userCfg: _cfgPath, defaultCfg: _defaultCfg};
} catch (err) { } catch (err) {
_write(cfgPath, defaultCfg); _write(cfgPath, _defaultCfg);
return {userCfg: {}, defaultCfg: _defaultCfg}; return {userCfg: {}, defaultCfg: _defaultCfg};
} }
} catch (err) { } catch (err) {