Update TaskManager.js

Added warning message on webhook fail
pull/14/head
Piero Toffanin 2017-04-13 08:49:49 -04:00 zatwierdzone przez GitHub
rodzic 8bf98fdb14
commit a2f7dd69bc
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -160,9 +160,7 @@ module.exports = class TaskManager{
json: task.getInfo() json: task.getInfo()
}, },
function (error, response, body) { function (error, response, body) {
if (!error && response.statusCode == 200) { if (error || response.statusCode != 200) logger.warn(`Call to webhook failed: ${task.webhook}`);
}
}); });
} }