From 96640a75dab089255c0619733ca9d5f9fe80127d Mon Sep 17 00:00:00 2001 From: Peter McAlpine Date: Thu, 12 Jun 2014 13:32:28 -0400 Subject: [PATCH] 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]". --- lib/middleware/proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/middleware/proxy.js b/lib/middleware/proxy.js index 55f599a0d..b8d4a05f6 100644 --- a/lib/middleware/proxy.js +++ b/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); } });