diff --git a/lib/nconf/stores/file.js b/lib/nconf/stores/file.js index 6c1a56f..729d5f0 100644 --- a/lib/nconf/stores/file.js +++ b/lib/nconf/stores/file.js @@ -105,7 +105,7 @@ File.prototype.load = function (callback) { } catch (ex) { - return callback(new Error("Error parsing your JSON configuration file: [" + self.file + '].')); + return callback(new Error("Error parsing your configuration file: [" + self.file + ']: ' + ex.message)); } callback(null, self.store); @@ -138,7 +138,7 @@ File.prototype.loadSync = function () { this.store = data; } catch (ex) { - throw new Error("Error parsing your JSON configuration file: [" + self.file + '].'); + throw new Error("Error parsing your configuration file: [" + self.file + ']: ' + ex.message); } }