Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-10-05 04:36:59 +0400
committerisaacs <i@izs.me>2010-10-05 04:36:59 +0400
commit275acc6ad57c1c68e13d1f4169054f77b612be5c (patch)
treeb4c5b206cd789dfa255255b2bf4d67356ab61a96
parent5436594f4970657de8b4a26f6265eff462f9baec (diff)
message about whitespace in the name
-rw-r--r--lib/utils/read-json.js2
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