Heh, on errors you'd never actually see any message, just the exception type. Whoops.

This commit is contained in:
Reinier Zwitserloot committed 2009-06-25 05:24:42 +02:00
1 parent bcee5a50db
commit 63894b98dd
1 file changed
+2 -2
+2 -2
View File
@@ -83,7 +83,7 @@ public class HandlerLibrary {
}
public void javacWarning(String message, Throwable t) {
messager.printMessage(Diagnostic.Kind.WARNING, message + t == null ? "" : (": " + t));
messager.printMessage(Diagnostic.Kind.WARNING, message + (t == null ? "" : (": " + t)));
}
public void javacError(String message) {
@@ -91,7 +91,7 @@ public class HandlerLibrary {
}
public void javacError(String message, Throwable t) {
messager.printMessage(Diagnostic.Kind.ERROR, message + t == null ? "" : (": " + t));
messager.printMessage(Diagnostic.Kind.ERROR, message + (t == null ? "" : (": " + t)));
}
private static void loadVisitorHandlers(HandlerLibrary lib) {