mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 14:37:45 +07:00
do not log CompilationCanceledException
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user