diff --git a/lib/conf.js b/lib/conf.js index 9be6e8e..db2a08b 100644 --- a/lib/conf.js +++ b/lib/conf.js @@ -41,7 +41,11 @@ class Conf extends ConfigChain { const contents = fs.readFileSync(file, 'utf8'); this.addString(contents, file, 'ini', marker); } catch (error) { - this.add({}, marker); + if (error.code === 'ENOENT') { + this.add({}, marker); + } else { + throw error; + } } return this;