diff --git a/services/notifications/app/coffee/HealthCheckController.coffee b/services/notifications/app/coffee/HealthCheckController.coffee index 69a3a5fc62..626cd02902 100644 --- a/services/notifications/app/coffee/HealthCheckController.coffee +++ b/services/notifications/app/coffee/HealthCheckController.coffee @@ -25,7 +25,10 @@ module.exports = opts = getOpts("/") opts.json = true request.get opts, (err, res, body)-> - if res.statusCode != 200 + if err? + logger.err err:err, "Health Check: error getting notification" + return callback(err) + else if res.statusCode != 200 e = "status code not 200 #{res.statusCode}" logger.err err:err, e return cb(e)