diff --git a/src/main/java/com/samskivert/mustache/Mustache.java b/src/main/java/com/samskivert/mustache/Mustache.java index 13b9b27..e9f527d 100644 --- a/src/main/java/com/samskivert/mustache/Mustache.java +++ b/src/main/java/com/samskivert/mustache/Mustache.java @@ -457,7 +457,7 @@ public class Mustache int end3 = (char)source.read(); if (end3 != '}') { throw new MustacheParseException( - "Invalid triple-mustache tag: {{{" + text.substring(1) + "}}", line); + "Invalid triple-mustache tag: {{" + text + "}}", line); } } catch (IOException e) { throw new MustacheException(e);