Skip to content

Commit

Permalink
feat(core): simplify Pebble error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Feb 7, 2025
1 parent 3f429ef commit 1eacb44
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
import lombok.Getter;

import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
Expand Down Expand Up @@ -56,8 +54,7 @@ public static IllegalVariableEvaluationException properPebbleException(PebbleExc
return new IllegalVariableEvaluationException(
"Unable to find `" + current.getAttributeName() +
"` used in the expression `" + current.getFileName() +
"` at line " + current.getLineNumber(),
e
"` at line " + current.getLineNumber()
);
}

Expand Down

0 comments on commit 1eacb44

Please sign in to comment.