Skip to content
Permalink
Browse files

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]".
  • Loading branch information...
rtkpmcalpine committed Jun 12, 2014
1 parent e63acb6 commit 96640a75dab089255c0619733ca9d5f9fe80127d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/middleware/proxy.js
@@ -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);
}
});

0 comments on commit 96640a7

Please sign in to comment.
You can’t perform that action at this time.