Skip to content

Commit 96640a7

Browse files
committed
fix(proxy): More useful proxyError log message
Update the log message to output the 'message' attribute of the Error so that more is logged than merely "[object Object]".
1 parent e63acb6 commit 96640a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/middleware/proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ var createProxyHandler = function(proxy, proxyConfig, proxyValidateSSL, urlRoot)
7979
if (err.code === 'ECONNRESET' && req.socket.destroyed) {
8080
log.debug('failed to proxy %s (browser hung up the socket)', req.url);
8181
} else {
82-
log.warn('failed to proxy %s (%s)', req.url, err);
82+
log.warn('failed to proxy %s (%s)', req.url, err.message);
8383
}
8484
});
8585

0 commit comments

Comments
 (0)