diff --git a/lib/modem.js b/lib/modem.js index 6e60587..168e0c1 100644 --- a/lib/modem.js +++ b/lib/modem.js @@ -382,7 +382,7 @@ Modem.prototype.buildPayload = function (err, isStream, statusCodes, openStdin, var msg = new Error( '(HTTP code ' + res.statusCode + ') ' + (statusCodes[res.statusCode] || 'unexpected') + ' - ' + - (cause.message || cause) + ' ' + (cause.message || cause.error || cause) + ' ' ); msg.reason = statusCodes[res.statusCode]; msg.statusCode = res.statusCode;