Permalink
Browse files

better error message

  • Loading branch information...
1 parent d23f39d commit 111f22c7bdcc47b265b65119bdfbaabc978b0d08 @fent committed Mar 21, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/index.js
View
@@ -18,7 +18,9 @@ var NPMHook = module.exports = function (options) {
npm.on(event, self.emit.bind(self, event));
});
- npm.on('error', self.emit.bind(self, 'error'));
+ npm.on('error', function(err) {
+ self.emit('error::request', err.message);
+ });
});
};

0 comments on commit 111f22c

Please sign in to comment.