From de3977d1e4a27d1d648937602423b054c2a1fc9f Mon Sep 17 00:00:00 2001 From: tigerbot Date: Wed, 25 Oct 2017 18:33:22 -0600 Subject: [PATCH] fixed bug reading non-existant config files --- bin/goldilocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/goldilocks.js b/bin/goldilocks.js index 51d77d2..97bf009 100755 --- a/bin/goldilocks.js +++ b/bin/goldilocks.js @@ -43,7 +43,7 @@ function createStorage(filename, filetype) { function read() { return fs.readFileAsync(filename).then(parse).catch(function (err) { if (err.code === 'ENOENT') { - return ''; + return {}; } return PromiseA.reject(err); });