Skip to content

Commit

Permalink
Show error message string instead of stringified Error
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinson committed Feb 2, 2015
1 parent bf168b6 commit b8e67b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions share/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Curl as part of the build process for the QMachine project.
//
// ~~ (c) SRW, 07 Jul 2014
// ~~ last updated 31 Jan 2015
// ~~ last updated 02 Jan 2015

(function () {
'use strict';
Expand All @@ -19,8 +19,8 @@

/*properties
argv, createWriteStream, error, exit, get, hasOwnProperty, headers,
indexOf, join, length, location, networkInterfaces, on, parse, pipe,
protocol, push, statusCode, writeFile
indexOf, join, length, location, message, networkInterfaces, on, parse,
pipe, protocol, push, statusCode, writeFile
*/

// Prerequisites
Expand Down Expand Up @@ -113,7 +113,7 @@
return;
}).on('error', function (err) {
// This function needs documentation.
console.error('Error:', err);
console.error('Error:', err.message);
return process.exit(1);
});
return;
Expand Down

0 comments on commit b8e67b9

Please sign in to comment.