TestUtil: include entire diagnostic on failure
This way we get the line number
This commit is contained in:
parent
7c453fb6b6
commit
85abce26f5
|
@ -181,7 +181,7 @@ public class TestUtil {
|
|||
public static void assertNoCompilationError(List<Diagnostic<?>> diagnostics) {
|
||||
for ( Diagnostic<?> diagnostic : diagnostics ) {
|
||||
if ( diagnostic.getKind().equals( Diagnostic.Kind.ERROR ) ) {
|
||||
fail( "There was a compilation error during annotation processing:\n" + diagnostic.getMessage( null ) );
|
||||
fail( "There was a compilation error during annotation processing:\n" + diagnostic );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue