vcs: More diagnostics for interrupted commit during code analysis check (IDEA-185735)

This commit is contained in:
Konstantin Kolosovsky
2018-11-21 17:28:35 +03:00
parent 071589c040
commit 27903701d3
2 changed files with 2 additions and 0 deletions
@@ -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) {