From a2f7dd69bc4726263ab2fa48aade14ba04a049ac Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Thu, 13 Apr 2017 08:49:49 -0400 Subject: [PATCH] Update TaskManager.js Added warning message on webhook fail --- libs/TaskManager.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/TaskManager.js b/libs/TaskManager.js index 03f432c..9ee09fc 100644 --- a/libs/TaskManager.js +++ b/libs/TaskManager.js @@ -160,9 +160,7 @@ module.exports = class TaskManager{ json: task.getInfo() }, function (error, response, body) { - if (!error && response.statusCode == 200) { - - } + if (error || response.statusCode != 200) logger.warn(`Call to webhook failed: ${task.webhook}`); }); }