From 53bece218621347df69b595ff9f45ae457874ec8 Mon Sep 17 00:00:00 2001 From: Rajat Goyal <404rajat@gmail.com> Date: Fri, 20 Nov 2020 23:49:52 +0530 Subject: [PATCH] Avoid printing the error message twice from client --- cmd/pinniped/cmd/root.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/pinniped/cmd/root.go b/cmd/pinniped/cmd/root.go index 58603081..8b5d01ae 100644 --- a/cmd/pinniped/cmd/root.go +++ b/cmd/pinniped/cmd/root.go @@ -4,7 +4,6 @@ package cmd import ( - "fmt" "os" "github.com/spf13/cobra" @@ -22,7 +21,6 @@ var rootCmd = &cobra.Command{ // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { if err := rootCmd.Execute(); err != nil { - fmt.Println(err) os.Exit(1) } }