diff options
author | isaacs <i@izs.me> | 2010-10-05 04:36:59 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-10-05 04:36:59 +0400 |
commit | 275acc6ad57c1c68e13d1f4169054f77b612be5c (patch) | |
tree | b4c5b206cd789dfa255255b2bf4d67356ab61a96 | |
parent | 5436594f4970657de8b4a26f6265eff462f9baec (diff) |
message about whitespace in the name
-rw-r--r-- | lib/utils/read-json.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/read-json.js b/lib/utils/read-json.js index c275bde89..5c304d8fd 100644 --- a/lib/utils/read-json.js +++ b/lib/utils/read-json.js @@ -76,7 +76,7 @@ function processObject (opts, cb) { return function (er, json) { if (json.name.charAt(0) === "." || json.name.match(/[\/@\s]/)) { var msg = "Invalid name: " + JSON.stringify(json.name) - + " may not start with '.' or contain '/' or '@'" + + " may not start with '.' or contain '/' or '@' or whitespace" , e = new Error(msg) if (cb) return cb(e) throw e |