Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better error message

  • Loading branch information...
commit 111f22c7bdcc47b265b65119bdfbaabc978b0d08 1 parent d23f39d
@fent authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/index.js
View
4 lib/index.js
@@ -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);
+ });
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.