Skip to content

Commit

Permalink
TestUtil: include entire diagnostic on failure
Browse files Browse the repository at this point in the history
This way we get the line number
  • Loading branch information
FroMage authored and gavinking committed Mar 1, 2024
1 parent 7c453fb commit 85abce2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public static void assertSuperClassRelationShipInMetamodel(Class<?> entityClass,
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 );
}
}
}
Expand Down

0 comments on commit 85abce2

Please sign in to comment.