Skip to content

Commit

Permalink
#70 StrictXML verbose exception msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Oct 8, 2015
1 parent 43654b0 commit a83b897
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/jcabi/xml/StrictXML.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ private StrictXML(final XML xml, final Collection<SAXParseException> errors)
xml
);
throw new IllegalArgumentException(
String.format("%d error(s), see log above", errors.size())
String.format(
"%d error(s) in XML document: %s",
errors.size(),
StrictXML.join(StrictXML.print(errors), ";")
)
);
}
this.origin = xml;
Expand Down

0 comments on commit a83b897

Please sign in to comment.