From 019ea910874dbb3e85b532c1fa35624107bfb0a8 Mon Sep 17 00:00:00 2001 From: aktsay6 Date: Wed, 3 Feb 2021 14:02:23 +0300 Subject: [PATCH] * feature/ktlint-rule-wrapper(#606) ### What's done: * Fixed bugs --- .../main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRule.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRule.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRule.kt index 5908ebea29..844fb42d8f 100644 --- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRule.kt +++ b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRule.kt @@ -7,7 +7,7 @@ import org.cqfn.diktat.ruleset.constants.EmitType import org.cqfn.diktat.ruleset.utils.log import org.jetbrains.kotlin.com.intellij.lang.ASTNode -typealias DiktatConfigRule = org.cqfn.diktat.common.config.rules.Rule +private typealias DiktatConfigRule = org.cqfn.diktat.common.config.rules.Rule abstract class DiktatRule(id: String, val configRules: List, val rules: List): Rule(id) { var isFixMode: Boolean = false @@ -21,7 +21,7 @@ abstract class DiktatRule(id: String, val configRules: List, val ru else { try { logic(node) - } catch (e: Exception) { + } catch (e: Throwable) { log.error("Internal error has occurred in $id. Please make an issue on this bug at https://github.com/cqfn/diKTat/.\n Error: ${e.message}") } }