Skip to content

Commit

Permalink
fix(tag): show unformatted error stack
Browse files Browse the repository at this point in the history
- error stack somehow is not shown when function call
is not wrapped with {}
  • Loading branch information
curbengh committed Aug 11, 2022
1 parent 1ee76ce commit 73b4222
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/extend/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ class Tag {
options,
cb
);
}).catch(err => Promise.reject(formatNunjucksError(err, str, source)))
.asCallback(callback);
}).catch(err => {
Promise.reject(formatNunjucksError(err, str, source));
}).asCallback(callback);
}
}

Expand Down

0 comments on commit 73b4222

Please sign in to comment.