diff --git a/src/main/java/com/hubspot/jinjava/lib/filter/SliceFilter.java b/src/main/java/com/hubspot/jinjava/lib/filter/SliceFilter.java index 973a60714..2fe88baae 100644 --- a/src/main/java/com/hubspot/jinjava/lib/filter/SliceFilter.java +++ b/src/main/java/com/hubspot/jinjava/lib/filter/SliceFilter.java @@ -90,8 +90,11 @@ public Object filter(Object var, JinjavaInterpreter interpreter, String... args) TemplateError.ErrorType.WARNING, TemplateError.ErrorReason.OVER_LIMIT, TemplateError.ErrorItem.FILTER, - "The value of the 'slices' parameter is greater than " + MAX_SLICES + ". It's been reduced to " + - MAX_SLICES, + String.format( + "The value of the 'slices' parameter is greater than %d. It's been reduced to %d", + MAX_SLICES, + MAX_SLICES + ), null, interpreter.getLineNumber(), interpreter.getPosition(),