From aecb618b3f02b3171c4813a6dcb09d37d399ddbc Mon Sep 17 00:00:00 2001 From: Keep Focused Date: Wed, 5 Feb 2025 13:11:56 +0700 Subject: [PATCH] Update the variable naming --- gcp/ignore_error_predicate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcp/ignore_error_predicate.go b/gcp/ignore_error_predicate.go index 56d2739e..b87915e9 100644 --- a/gcp/ignore_error_predicate.go +++ b/gcp/ignore_error_predicate.go @@ -31,9 +31,9 @@ func shouldIgnoreErrorPluginDefault() plugin.ErrorPredicateWithContext { // Add to support regex match as per error message for _, pattern := range gcpConfig.IgnoreErrorMessages { // Validate regex pattern - re, err := regexp.Compile(pattern) - if err != nil { - panic(err.Error() + " the regex pattern configured in 'ignore_error_messages' is invalid. Edit your connection configuration file and then restart Steampipe") + re, er := regexp.Compile(pattern) + if er != nil { + panic(er.Error() + " the regex pattern configured in 'ignore_error_messages' is invalid. Edit your connection configuration file and then restart Steampipe") } result := re.MatchString(err.Error()) if result {