Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When a global function in a template throws an error, we don’t see the full trace of the error, which makes diagnosing issues really hard. This makes use of the [undocumented dev argument](mozilla/nunjucks#1430) which allows us to see the cause of the error in our logs and in Sentry. I’ve had to extend the nunjucks types to allow for this option to be set, as it’s not in the type definition in `DefinitelyTyped`. However, I’ve [opened a PR to add this](DefinitelyTyped/DefinitelyTyped#63968)
- Loading branch information