Skip to content

Commit

Permalink
Stop printing errors twice
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Apr 10, 2023
1 parent 0d1e66e commit 92c719c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"log"
"os"

"github.com/spf13/cobra"
)
Expand All @@ -17,6 +17,6 @@ Ensures that the given config file can be used by the platform.`,

func Execute() {
if err := rootCmd.Execute(); err != nil {
log.Fatal(err)
os.Exit(1)
}
}

0 comments on commit 92c719c

Please sign in to comment.