Avoid JDK 7+ AssertionError constructor in 4.3.x line

This commit is contained in:
Juergen Hoeller 2017-05-04 14:14:56 +02:00
parent 1332482c40
commit 50235be746
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ public class JsonPathResultMatchers {
return content.substring(this.prefix.length());
}
catch (StringIndexOutOfBoundsException ex) {
throw new AssertionError("JSON prefix \"" + this.prefix + "\" not found", ex);
throw new AssertionError("JSON prefix \"" + this.prefix + "\" not found: " + ex);
}
}
else {