Skip to content

Throw a template error when attempting to divide by zero#754

Merged
jmaroeder merged 1 commit into
masterfrom
template-error-divide-by-zero
Sep 27, 2021
Merged

Throw a template error when attempting to divide by zero#754
jmaroeder merged 1 commit into
masterfrom
template-error-divide-by-zero

Conversation

@jmaroeder

Copy link
Copy Markdown
Contributor

Rather than throwing an uncaught ArithmeticException, this makes Jinjava throw a template error which can be handled like all other Jinjava template errors.

Comment thread src/main/java/com/hubspot/jinjava/lib/filter/DivideFilter.java
@jmaroeder jmaroeder merged commit 6c5bc70 into master Sep 27, 2021
@jmaroeder jmaroeder deleted the template-error-divide-by-zero branch September 27, 2021 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants