From ace9a8e6109dbb59cc2897dc79647ec21f007f8c Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Date: Fri, 22 Dec 2023 09:33:17 +0200 Subject: [PATCH] Add newline to `No config file present, using default values.` (#2021) The newline was missing which was messing with the output. --- cmd/cli/app/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cli/app/root.go b/cmd/cli/app/root.go index 01dd2fa8c6..80feec3323 100644 --- a/cmd/cli/app/root.go +++ b/cmd/cli/app/root.go @@ -104,7 +104,7 @@ func initConfig() { if err := viper.ReadInConfig(); err != nil { if _, ok := err.(viper.ConfigFileNotFoundError); ok { // Config file not found; use default values - RootCmd.PrintErr("No config file present, using default values.") + RootCmd.PrintErrln("No config file present, using default values.") } else { // Some other error occurred RootCmd.Printf("Error reading config file: %s", err)