Skip to content

Commit

Permalink
Show URL when a download fails
Browse files Browse the repository at this point in the history
This makes issues like nodejs#623 easier to debug
  • Loading branch information
dcposch committed May 12, 2015
1 parent fbe8c26 commit 8dfcf91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function install (gyp, argv, callback) {
req.on('response', function (res) {
if (res.statusCode !== 200) {
badDownload = true
cb(new Error(res.statusCode + ' status code downloading tarball'))
cb(new Error(res.statusCode + ' response dowloading ' + tarballUrl))
return
}
// content checksum
Expand Down

0 comments on commit 8dfcf91

Please sign in to comment.