From a408711f37eaede1a256e9d46928e47424a03fd3 Mon Sep 17 00:00:00 2001 From: Natalia Selezneva Date: Wed, 12 Dec 2018 12:22:39 +0300 Subject: [PATCH] Scratch: do not show error message when scratch execution is cancelled by user --- .../kotlin/idea/scratch/compile/KtCompilingExecutor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/compile/KtCompilingExecutor.kt b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/compile/KtCompilingExecutor.kt index 2042343546c..c8ead10d197 100644 --- a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/compile/KtCompilingExecutor.kt +++ b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/scratch/compile/KtCompilingExecutor.kt @@ -101,7 +101,7 @@ class KtCompilingExecutor(file: ScratchFile) : ScratchExecutor(file) { errorOccurs("Couldn't get scratch execution result - stopped by timeout ($TIMEOUT_MS ms)") } executionResult.isCancelled -> { - errorOccurs("Couldn't get scratch execution result - cancelled by user") + // ignore } else -> { ProcessOutputParser().parse(executionResult)