Skip to content

Commit

Permalink
fix(proxy): More useful proxyError log message
Browse files Browse the repository at this point in the history
Update the log message to output the 'message' attribute of the Error so
that more is logged than merely "[object Object]".
  • Loading branch information
rtkpmcalpine committed Jun 12, 2014
1 parent e63acb6 commit 96640a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var createProxyHandler = function(proxy, proxyConfig, proxyValidateSSL, urlRoot)
if (err.code === 'ECONNRESET' && req.socket.destroyed) {
log.debug('failed to proxy %s (browser hung up the socket)', req.url);
} else {
log.warn('failed to proxy %s (%s)', req.url, err);
log.warn('failed to proxy %s (%s)', req.url, err.message);
}
});

Expand Down

0 comments on commit 96640a7

Please sign in to comment.