From da1d72eec3ea8d2da3eb7a317d143336653bf86d Mon Sep 17 00:00:00 2001 From: Anjan Nath Date: Fri, 27 Oct 2023 15:36:45 +0530 Subject: [PATCH] warn instead of fatal error when proxy configs are erroneous when an error is returned from NewProxyConfig because of wrong proxy env variables or missing proxy ca cert file, in root.go it was fatal error which prevented running of any crc commands and user was not able to unset the invalid config this changes it to be a warning, which will allow users to correct the wrong config this fixes #3690 #3098 --- cmd/crc/cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/crc/cmd/root.go b/cmd/crc/cmd/root.go index 099cdce6dc..f257844cab 100644 --- a/cmd/crc/cmd/root.go +++ b/cmd/crc/cmd/root.go @@ -56,7 +56,7 @@ func init() { } if err := setProxyDefaults(); err != nil { - logging.Fatal(err.Error()) + logging.Warn(err.Error()) } // Initiate segment client