We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fff111c commit 810b033Copy full SHA for 810b033
cmd/root.go
@@ -5,9 +5,10 @@ import (
5
"os"
6
"strings"
7
8
- "github.com/jetstack/preflight/pkg/logs"
9
"github.com/spf13/cobra"
10
"github.com/spf13/pflag"
+
11
+ "github.com/jetstack/preflight/pkg/logs"
12
)
13
14
// rootCmd represents the base command when called without any subcommands
@@ -35,8 +36,7 @@ func Execute() {
35
36
logs.AddFlags(rootCmd.PersistentFlags())
37
38
if err := rootCmd.Execute(); err != nil {
- fmt.Println(err)
39
- os.Exit(1)
+ logs.Log.Fatal(err)
40
}
41
42
0 commit comments