From 0f32ce0edb323190477063dcd1cd753ee48562f9 Mon Sep 17 00:00:00 2001 From: Stephen von Takach Date: Thu, 28 Dec 2023 17:06:35 +1100 Subject: [PATCH] add error to allowed exception variables resolves #433 --- src/ameba/rule/naming/rescued_exceptions_variable_name.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ameba/rule/naming/rescued_exceptions_variable_name.cr b/src/ameba/rule/naming/rescued_exceptions_variable_name.cr index 8dcfd1aa..e4044024 100644 --- a/src/ameba/rule/naming/rescued_exceptions_variable_name.cr +++ b/src/ameba/rule/naming/rescued_exceptions_variable_name.cr @@ -27,7 +27,7 @@ module Ameba::Rule::Naming class RescuedExceptionsVariableName < Base properties do description "Makes sure that rescued exceptions variables are named as expected" - allowed_names %w[e ex exception] + allowed_names %w[e ex error exception] end MSG = "Disallowed variable name, use one of these instead: '%s'"