More information in the assertion message

This commit is contained in:
Andrey Breslav
2013-08-28 12:07:29 +04:00
parent 945786e628
commit 7c3e30775a
@@ -77,7 +77,9 @@ public final class InTextDirectivesUtils {
if (strings.size() != 1) {
throw new IllegalStateException("There is more than one string with given prefixes " +
Arrays.toString(prefixes) + ". Use findListWithPrefixes() instead.");
Arrays.toString(prefixes) + ":\n" +
StringUtil.join(strings, "\n") + "\n" +
"Use findListWithPrefixes() instead.");
}
return strings.get(0);