mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
schemeManager: do not log ProcessCanceledException
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user