package com.hubspot.jinjava.interpret;

public class MissingEndTagException extends TemplateSyntaxException {
  private static final long serialVersionUID = 1L;

  private final String endTag;
  private final String startDefinition;
  
  public MissingEndTagException(String endTag, String startDefintion, int lineNumber) {
    super(startDefintion, "Missing end tag: " + endTag + "for tag defined as: " + startDefintion, lineNumber);
    this.endTag = endTag;
    this.startDefinition = startDefintion;
  }

  public String getEndTag() {
    return endTag;
  }
  
  public String getStartDefinition() {
    return startDefinition;
  }

}

@@ -33,16 +33,62 @@
 rpret;%0A%0A
+import org.apache.commons.lang3.StringUtils;%0A%0A
 public c
@@ -445,16 +445,39 @@
 as: %22 + 
+StringUtils.abbreviate(
 startDef
@@ -483,16 +483,22 @@
 fintion,
+ 255),
  lineNum

truncate start-def in missing-end-tag error