diff --git a/lib/nconf/stores/file.js b/lib/nconf/stores/file.js index 45e2bdd..6d3aa0c 100644 --- a/lib/nconf/stores/file.js +++ b/lib/nconf/stores/file.js @@ -97,12 +97,13 @@ File.prototype.load = function (callback) { try { self.store = self.format.parse(data.toString()); - callback(null, self.store); } catch (ex) { self.store = {}; - callback(ex); + return callback(ex); } + callback(null, self.store); + }); };