diff options
author | isaacs <i@izs.me> | 2010-03-23 02:16:00 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-03-23 02:16:00 +0300 |
commit | 13be208c6464a8e7af5db634160a20fd28086a47 (patch) | |
tree | 5f93fda9e8bdf94f0911311d9a898953c9fece1e /lib/adduser.js | |
parent | 5c889889c4e2cf28ca8af7d2c78c89b2d4f45a40 (diff) |
Error callbacks should send Error objects
Diffstat (limited to 'lib/adduser.js')
-rw-r--r-- | lib/adduser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/adduser.js b/lib/adduser.js index 3e21fa0b1..debc61acc 100644 --- a/lib/adduser.js +++ b/lib/adduser.js @@ -15,7 +15,7 @@ var adduser = function (username, password, email, callback) { config.set('auth', base64.encode(username+':'+password)); log("Created user "+username+" and configured authentication credentials for npm.") } else { - callback({message:error}); + callback(new Error(error)); } }); } |