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;