TestUtil: include entire diagnostic on failure

This way we get the line number
This commit is contained in:
Stéphane Épardaud 2024-02-28 15:33:16 +01:00 committed by Gavin King
parent 7c453fb6b6
commit 85abce26f5
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
}
}