From 5dd58a224435d8a957adc5e47a3d50150fe13c1e Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Thu, 29 Nov 2018 14:16:13 +0100 Subject: [PATCH] schemeManager: do not log ProcessCanceledException --- .../src/schemeManager/schemeManagerUtil.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/configuration-store-impl/src/schemeManager/schemeManagerUtil.kt b/platform/configuration-store-impl/src/schemeManager/schemeManagerUtil.kt index 622f7e0d3710..5871c2dfd4ed 100644 --- a/platform/configuration-store-impl/src/schemeManager/schemeManagerUtil.kt +++ b/platform/configuration-store-impl/src/schemeManager/schemeManagerUtil.kt @@ -1,7 +1,9 @@ +// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.configurationStore.schemeManager import com.intellij.configurationStore.LOG import com.intellij.openapi.options.ExternalizableScheme +import com.intellij.openapi.progress.ProcessCanceledException internal fun ExternalizableScheme.renameScheme(newName: String) { if (newName != name) { @@ -14,6 +16,9 @@ internal inline fun catchAndLog(fileName: String, runnable: (fileName: String) - try { runnable(fileName) } + catch (e: ProcessCanceledException) { + throw e + } catch (e: Throwable) { LOG.error("Cannot read scheme $fileName", e) }