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
path: root/lib
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2015-07-29 12:44:01 +0300
committerRebecca Turner <me@re-becca.org>2015-08-14 22:25:47 +0300
commit75ca59cb7bca57f35f5cc71aca85a158b24185c1 (patch)
treea044593cdfb7d16d3b91a28fa72ce1600ca3f3e2 /lib
parente6b5acc3521e074b86c0ea5aad0a836b09d9d164 (diff)
whoami: make needauth err more generic
PR-URL: https://github.com/npm/npm/pull/9011
Diffstat (limited to 'lib')
-rw-r--r--lib/whoami.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/whoami.js b/lib/whoami.js
index 77d52eef9..feb6fab95 100644
--- a/lib/whoami.js
+++ b/lib/whoami.js
@@ -39,7 +39,7 @@ function whoami (args, silent, cb) {
// At this point, if they have a credentials object, it doesn't have a token
// or auth in it. Probably just the default registry.
var needAuth = new Error(
- "'npm whoami' requires you to be logged in."
+ 'this command requires you to be logged in.'
)
needAuth.code = 'ENEEDAUTH'
process.nextTick(cb.bind(this, needAuth))