We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb850cf commit c9ff51cCopy full SHA for c9ff51c
src/main/java/com/hubspot/jinjava/el/ExpressionResolver.java
@@ -190,13 +190,13 @@ public Object resolveExpression(String expression) {
190
final String combinedMessage = String.format(
191
"%s%nOriginating Exception:%n%s",
192
e.getMessage(),
193
- getRootCauseMessage(e)
+ originatingException
194
);
195
interpreter.addError(
196
TemplateError.fromException(
197
new TemplateSyntaxException(
198
expression,
199
- StringUtils.equals(e.getMessage(), originatingException)
+ StringUtils.endsWith(originatingException, e.getMessage())
200
? e.getMessage()
201
: combinedMessage,
202
interpreter.getLineNumber(),
0 commit comments