Skip to content

Commit

Permalink
fix(mustache-context): catch error thrown for invalid flow and global…
Browse files Browse the repository at this point in the history
… var
  • Loading branch information
zachowj committed Feb 13, 2019
1 parent e0de7cb commit 38a16fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mustache-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ NodeContext.prototype.lookup = function(name) {
const field = context.field;
const target = this.nodeContext[type];
if (target) {
return target.get(field, store);
try {
return target.get(field, store);
} catch (err) {}
}
}

Expand Down

0 comments on commit 38a16fb

Please sign in to comment.