bruce-models 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1543,8 +1543,16 @@
1543
1543
  value = BruceVariable.SwapValues(value, entity);
1544
1544
  return eval(value);
1545
1545
  }
1546
- catch (e) {
1547
- console.error(e);
1546
+ catch (exception) {
1547
+ var e = exception;
1548
+ var suppress = false;
1549
+ if (e && typeof e == "object") {
1550
+ var msg = e.message;
1551
+ suppress = !!msg && msg.includes("Unexpected end");
1552
+ }
1553
+ if (!suppress) {
1554
+ console.error(e);
1555
+ }
1548
1556
  }
1549
1557
  }
1550
1558
  return value;