getting ready to send errors to plotter

This commit is contained in:
Luis Fernando Molina committed 2019-06-05 12:23:20 +02:00
1 parent 6a8ad059ca
commit d00721f711
1 file changed
+4 -1
+4 -1
View File
@@ -500,6 +500,7 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) {
let condition;
let value = false;
let error = ''
try {
value = eval(code);
@@ -509,11 +510,13 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) {
reason and others, we will simply set the value to false.
*/
value = false
error = err.message
}
condition = {
key: key,
value: value
value: value,
error: error
};
conditions.set(condition.key, condition);