From a45d559f8810df11253bff3a5acfa60ad08e5bb7 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Tue, 10 Dec 2024 11:26:10 +0100 Subject: [PATCH] review follow-up: correct logging (IDEA-363192) (cherry picked from commit b5e82476bd9b8200b77b6fed06dbfdd6940aab93) IJ-CR-150469 GitOrigin-RevId: cac4c686bf67262eaf28af6e7444501c2dfd6ca4 --- .../src/com/intellij/ui/content/impl/MessageViewImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ui/content/impl/MessageViewImpl.kt b/platform/platform-impl/src/com/intellij/ui/content/impl/MessageViewImpl.kt index 602714426e82..110bfa420c57 100644 --- a/platform/platform-impl/src/com/intellij/ui/content/impl/MessageViewImpl.kt +++ b/platform/platform-impl/src/com/intellij/ui/content/impl/MessageViewImpl.kt @@ -5,8 +5,8 @@ import com.intellij.concurrency.captureThreadContext import com.intellij.icons.AllIcons import com.intellij.openapi.application.EDT import com.intellij.openapi.components.serviceAsync +import com.intellij.openapi.diagnostic.ControlFlowException import com.intellij.openapi.diagnostic.thisLogger -import com.intellij.openapi.progress.ProcessCanceledException import com.intellij.openapi.project.Project import com.intellij.openapi.startup.StartupManager import com.intellij.openapi.wm.ToolWindow @@ -42,7 +42,7 @@ internal class MessageViewImpl(private val project: Project, private val scope: postponedRunnable.run() } catch (e: Throwable) { - if (e !is ProcessCanceledException) { + if (e !is ControlFlowException) { thisLogger().error(e) } if (err == null) {