diff options
author | isaacs <i@izs.me> | 2012-08-18 02:42:25 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-08-18 02:42:25 +0400 |
commit | 76d56d979d14fca53b2d1a849515b2e66f594c8e (patch) | |
tree | 444191ad29bdb7b078160a843d60d21c00bcdcb6 | |
parent | f6d7ae52c4100e9b510ef98affff73186b1f664a (diff) |
Fix #2606 Better error message when not logged in
-rw-r--r-- | lib/utils/error-handler.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/utils/error-handler.js b/lib/utils/error-handler.js index 68ede5f69..7fabd6999 100644 --- a/lib/utils/error-handler.js +++ b/lib/utils/error-handler.js @@ -197,6 +197,12 @@ function errorHandler (er) { ,"Move it away, and try again."].join("\n")) break + case "ENEEDAUTH": + log.error("need auth", [er.message + ,"You need to authorize this machine using `npm adduser`" + ].join("\n")) + break + case "ENOTSUP": if (er.required) { log.error("notsup", [er.message |