Skip to content

Commit

Permalink
Improve error message when TypeOracle.findType() returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0ffrey authored and nmorel committed Apr 28, 2017
1 parent 23d54bd commit 4583249
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ private JType findType( Class<?> clazz ) {
private JClassType findClassType( Class<?> clazz ) {
JClassType mapperType = context.getTypeOracle().findType( clazz.getCanonicalName() );
if ( null == mapperType ) {
logger.log( Type.WARN, "Cannot find the type denoted by the class " + clazz.getCanonicalName() );
logger.log( Type.WARN, "Cannot find the type denoted by the class " + clazz.getCanonicalName()
+ " or GWT compilation of that class failed. In the latter case, compile with -failOnError to discover the real error." );
return null;
}
return mapperType;
Expand Down

0 comments on commit 4583249

Please sign in to comment.