From 341ea12358aa5491142e0470f8ad4700d8d01765 Mon Sep 17 00:00:00 2001 From: Oleg Smelov <79197369+oleg-vinted@users.noreply.github.com> Date: Mon, 3 Jul 2023 10:49:35 +0300 Subject: [PATCH] Handle exceptions when Packwerk cannot be executed --- .../packwerkintellij/annotators/PackwerkAnnotator.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/vinted/packwerkintellij/annotators/PackwerkAnnotator.kt b/src/main/kotlin/com/vinted/packwerkintellij/annotators/PackwerkAnnotator.kt index 451bcb7..dd0e8a2 100644 --- a/src/main/kotlin/com/vinted/packwerkintellij/annotators/PackwerkAnnotator.kt +++ b/src/main/kotlin/com/vinted/packwerkintellij/annotators/PackwerkAnnotator.kt @@ -1,5 +1,6 @@ package com.vinted.packwerkintellij.annotators +import com.intellij.execution.ExecutionException import com.intellij.execution.configurations.GeneralCommandLine import com.intellij.lang.annotation.AnnotationHolder import com.intellij.lang.annotation.ExternalAnnotator @@ -59,7 +60,14 @@ internal class PackwerkAnnotator : ExternalAnnotator()