Skip to content

Commit

Permalink
Don't print error on root cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
dbason committed May 10, 2022
1 parent dcb28e4 commit c269cad
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/opni/root.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package opni

import (
"fmt"
"os"

"github.com/rancher/opni/pkg/logger"
Expand Down Expand Up @@ -34,7 +33,6 @@ func BuildRootCmd() *cobra.Command {

func Execute() {
if err := BuildRootCmd().Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}

0 comments on commit c269cad

Please sign in to comment.