From aa34850d4e2f18922a0712c38e81a2a3ad99be1f Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 15 Dec 2015 12:52:41 -0800 Subject: [PATCH] fix typo --- src/apphealthmonitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apphealthmonitor.js b/src/apphealthmonitor.js index a049b681f..a5870f277 100644 --- a/src/apphealthmonitor.js +++ b/src/apphealthmonitor.js @@ -95,7 +95,7 @@ function checkAppHealth(app, callback) { if (error && !error.response) { debugApp(app, 'not alive (network error): %s', error.message); setHealth(app, appdb.HEALTH_UNHEALTHY, callback); - } if (res.statusCode >= 400) { // 2xx and 3xx are ok + } else if (res.statusCode >= 400) { // 2xx and 3xx are ok debugApp(app, 'not alive : %s', error || res.status); setHealth(app, appdb.HEALTH_UNHEALTHY, callback); } else {