From a75336b4bbfb04f28c9a79fac8484cfb38d5bd32 Mon Sep 17 00:00:00 2001 From: Italo Amorim Date: Thu, 16 Feb 2017 12:36:29 -0200 Subject: [PATCH] Update rule.js add message error... --- lib/rule.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rule.js b/lib/rule.js index 75a73d8..fb9d93a 100644 --- a/lib/rule.js +++ b/lib/rule.js @@ -243,6 +243,7 @@ var Rule = declare({ ret = cb.call(flow, match.factHash, flow); } } catch (e) { + console.error( `An error occured while executing rule ${this.name}. Error is: ${e.message}` ); ret.errback(e); } return ret;