diff --git a/src/tests/com/puppycrawl/tools/checkstyle/BaseCheckTestCase.java b/src/tests/com/puppycrawl/tools/checkstyle/BaseCheckTestCase.java index b5794231c..65f7e6229 100644 --- a/src/tests/com/puppycrawl/tools/checkstyle/BaseCheckTestCase.java +++ b/src/tests/com/puppycrawl/tools/checkstyle/BaseCheckTestCase.java @@ -118,7 +118,9 @@ public abstract class BaseCheckTestCase final String actual = lnr.readLine(); assertEquals("error message " + i, expected, actual); } - assertEquals(aExpected.length, errs); + + assertEquals("unexpected output: " + lnr.readLine(), + aExpected.length, errs); aC.destroy(); } }