Adding email config and notifications for errors

This commit is contained in:
Matias Benitez committed 2018-07-06 10:51:43 -03:00
1 parent 1059106fc2
commit b225123d1f
2 files changed
+23 -1

No files matched your search

+4
View File
@@ -851,6 +851,7 @@
clearTimeout(nextLoopTimeoutHandle);
clearTimeout(checkLoopHealthHandle);
bot.enableCheckLoopHealth = false;
assistant.sendEmail("FAIL", "Operation Failed. Aborting the process. err = " + err.message, true);
callBackFunction(err);
return;
}
@@ -863,6 +864,7 @@
clearTimeout(nextLoopTimeoutHandle);
clearTimeout(checkLoopHealthHandle);
bot.enableCheckLoopHealth = false;
assistant.sendEmail("FAIL", "Operation Failed. Aborting the process. err = " + err.message, true);
callBackFunction(global.DEFAULT_FAIL_RESPONSE);
return;
}
@@ -875,6 +877,7 @@
clearTimeout(nextLoopTimeoutHandle);
clearTimeout(checkLoopHealthHandle);
bot.enableCheckLoopHealth = false;
assistant.sendEmail("FAIL", "Operation Failed. Aborting the process. err = " + err.message, true);
callBackFunction(err);
}
}
@@ -886,6 +889,7 @@
clearTimeout(nextLoopTimeoutHandle);
clearTimeout(checkLoopHealthHandle);
bot.enableCheckLoopHealth = false;
assistant.sendEmail("FAIL", "Operation Failed. Aborting the process. err = " + err.message, true);
callBackFunction(err);
}
}