mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
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 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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user