Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

append original filename to shasum error

  • Loading branch information...
commit ff46366bd40ff0ef33c7bac8400bc912c56201d1 1 parent df87287
@rlidwka rlidwka authored domenic committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/cache.js
View
4 lib/cache.js
@@ -287,6 +287,10 @@ function fetchAndShaCheck (u, tmp, shasum, cb) {
if (!shasum) return cb(null, response)
// validate that the url we just downloaded matches the expected shasum.
sha.check(tmp, shasum, function (er) {
+ if (er != null && er.message) {
+ // add original filename for better debuggability
+ er.message = er.message + '\n' + 'From: ' + u
+ }
return cb(er, response, shasum)
})
})
Please sign in to comment.
Something went wrong with that request. Please try again.