Permalink
Browse files

log after the error is handled

  • Loading branch information...
1 parent 7005517 commit 51c87317fbe007735aadb23f04d2a35d66ed89e6 @dominictarr committed Nov 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 online.js
View
@@ -24,8 +24,8 @@ module.exports = function (module, vrange, opts, cb) {
if(!err)
headers['if-none-match'] = json._etag
request({url: u, headers: headers}, function (err, res, data) {
- console.error(res.statusCode, u)
if(err) return cb(err)
+ console.error(res.statusCode, u)
if(res.statusCode === 304)
return next(null, json)

0 comments on commit 51c8731

Please sign in to comment.