From 6f92538ffa3b257279dcf5e3450d25770d72a014 Mon Sep 17 00:00:00 2001 From: Roman Shtylman Date: Mon, 18 Jun 2012 14:10:24 -0400 Subject: [PATCH] fix client error message for failed upstream connection --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index 60580bf..e2e5ade 100644 --- a/client.js +++ b/client.js @@ -35,7 +35,7 @@ var upstream; (function connect_proxy() { request(opt, function(err, res, body) { if (err) { - console.error('upstream not available: http status %d', res.statusCode); + console.error('upstream not available: %s', err.message); return process.exit(-1); }