Replace 0 arg String.format with string.
This format string does not take any arguments, and templateName is null
anyway, so the string can just be used directly.
@@ -45,9 +45,8 @@ public class IncludeNode extends AbstractRenderableNode {
if (templateName == null) {
throw new PebbleException(
null,
- String.format(
"The template name in an include tag evaluated to NULL. If the template name is static, make sure to wrap it in quotes.",
- templateName), getLineNumber(), self.getName());
+ getLineNumber(), self.getName());
}
self.includeTemplate(writer, context, templateName, map);
}
