From ef2e9992dc3098f6c4722c2a98966cd8abf8bab5 Mon Sep 17 00:00:00 2001 From: Andrew Katsikas Date: Thu, 12 Mar 2026 02:34:11 -0400 Subject: [PATCH] fix: properly surface config parse errors (#5822) --- cmd/utils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/utils.go b/cmd/utils.go index a57856e4..3ae29b27 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -118,7 +118,8 @@ func initViper(cmd *cobra.Command) (*viper.Viper, error) { // Read in configuration if err := v.ReadInConfig(); err != nil { - if errors.Is(err, viper.ConfigParseError{}) { + + if errors.As(err, &viper.ConfigParseError{}) { return nil, err }