From b632f609ad7930db1ba4894131aea28754f78b1c Mon Sep 17 00:00:00 2001 From: slozenko Date: Tue, 19 Mar 2024 12:31:45 -0700 Subject: [PATCH] formatting --- .../java/com/hubspot/jinjava/lib/filter/SliceFilter.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(),