Add more debugging for conversion failures

This commit is contained in:
Grahame Grieve 2020-02-12 17:44:19 +11:00
parent 8e756de52e
commit 0f74f25078
1 changed files with 2 additions and 1 deletions

View File

@ -761,8 +761,9 @@ public class ValidationEngine implements IValidatorResourceFetcher {
System.out.print("* load file: "+fn);
}
System.out.println(" - ignored due to error: "+(e.getMessage() == null ? " (null - NPE)" : e.getMessage()));
if (debug)
if (debug || ((e.getMessage() != null && e.getMessage().contains("cannot be cast")))) {
e.printStackTrace();
}
}
return r;
}