mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: More diagnostics for interrupted commit during code analysis check (IDEA-185735)
This commit is contained in:
+1
@@ -161,6 +161,7 @@ public class CodeAnalysisBeforeCheckinHandler extends CheckinHandler {
|
||||
indicator.setIndeterminate(true);
|
||||
codeSmells.set(CodeAnalysisBeforeCheckinShowOnlyNew.runAnalysis(myProject, files, indicator));
|
||||
} catch (ProcessCanceledException e) {
|
||||
LOG.info("Code analysis canceled", e);
|
||||
exception.set(e);
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
@@ -100,6 +100,7 @@ public class CodeSmellDetectorImpl extends CodeSmellDetector {
|
||||
result.addAll(findCodeSmells(filesToCheck, progress));
|
||||
}
|
||||
catch (ProcessCanceledException e) {
|
||||
LOG.info("Code analysis canceled", e);
|
||||
exception.set(e);
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user