Skip to content

Commit

Permalink
[minor] Clarified error message returned when a config file contains …
Browse files Browse the repository at this point in the history
…invalid JSON.
  • Loading branch information
avian authored and avian committed May 20, 2011
1 parent 78202ec commit e7c216e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nconf/stores/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ File.prototype.loadSync = function (callback) {
}

if (err) {
err.message = "Error parsing your JSON configuration file."
throw err;
}

Expand Down

0 comments on commit e7c216e

Please sign in to comment.