mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not log throwable when rethrow is more likely to be expected (IDEA-110920)
This commit is contained in:
+6
-1
@@ -365,7 +365,12 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
|
||||
});
|
||||
}
|
||||
catch (ProcessCanceledException e) {
|
||||
throw e;
|
||||
final Throwable cause = e.getCause();
|
||||
if (cause != null) {
|
||||
LOG.error("In file: " + file, cause);
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
catch (IndexNotReadyException e) {
|
||||
throw e;
|
||||
|
||||
@@ -70,7 +70,7 @@ public class JobLauncherImpl extends JobLauncher {
|
||||
}
|
||||
catch (Throwable throwable) {
|
||||
job.cancel();
|
||||
LOG.error(throwable);
|
||||
throw new ProcessCanceledException(throwable);
|
||||
}
|
||||
return !job.isCanceled();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user