do not log CompilationCanceledException

This commit is contained in:
Eugene Zhuravlev
2012-10-08 17:23:52 +02:00
parent 0ba601d500
commit 7d25396fa1
2 changed files with 3 additions and 3 deletions
@@ -129,6 +129,9 @@ public class JavacMain {
catch(IllegalArgumentException e) {
outConsumer.report(new PlainMessageDiagnostic(Diagnostic.Kind.ERROR, e.getMessage()));
}
catch (CompilationCanceledException ignored) {
outConsumer.report(new PlainMessageDiagnostic(Diagnostic.Kind.OTHER, "Compilation was canceled"));
}
finally {
fileManager.close();
}
@@ -137,9 +137,6 @@ public class JavacServer {
final boolean rc = JavacMain.compile(options, files, classpath, platformCp, sourcePath, outs, diagnostic, outputSink, canceledStatus, false);
return JavacProtoUtil.toMessage(sessionId, JavacProtoUtil.createBuildCompletedResponse(rc));
}
catch (CompilationCanceledException e) {
return JavacProtoUtil.toMessage(sessionId, JavacProtoUtil.createFailure(e.getMessage(), e));
}
catch (Throwable e) {
e.printStackTrace(System.err);
return JavacProtoUtil.toMessage(sessionId, JavacProtoUtil.createFailure(e.getMessage(), e));