schemeManager: do not log ProcessCanceledException

This commit is contained in:
Vladimir Krivosheev
2018-11-29 14:19:03 +01:00
parent 706f58798c
commit 5dd58a2244
@@ -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)
}