Remove duplicate error prints
package cmd
import (
- "fmt"
"github.com/lithammer/dedent"
"github.com/spf13/cobra"
"github.com/wso2/micro-integrator/cmd/utils"
@@ -47,7 +46,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)
}
}
