on master help sign in
Improve two of the npm installer error messages a little bit
commitfdf16a5680b763fbc31e8c79720a9ccd6c9798a5 authorEvan Czaplicki <evancz@users.noreply.github.com> dateFri 10 May 2019, 14:40 (7 years ago) parent14b9716
1 file changed+5−3
installers/npm/download.js+5−3
installers/npm/download.js+5−3
@@ -34,13 +34,15 @@ function download(destinationPath, url, callback)
3434{
3535 requestWithRedirects(url, 10,
3636 function(error) {
37− var url = host + '/' + path;
38− exitFailure(url, 'Error fetching binary from ' + url + ': ' + error);
37+ exitFailure(url, 'I ran into trouble while fetching ' + url + '\n\n' + error);
3938 },
4039 function(response) {
4140 if (response.statusCode == 404)
4241 {
43− exitFailure(url, 'I got a "404 Not Found" trying to download from the following URL:\n' + url);
42+ exitFailure(url, 'I got a "404 Not Found" trying to download from the following URL:\n'
43+ + url
44+ + '\n\nThis may mean you are trying to install on an unsupported platform. (e.g. some 32-bit systems?)'
45+ );
4446 }
4547
4648 response.on('error', function() {