Skip to content

Commit

Permalink
refactor(cmd): error formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sundowndev committed Nov 14, 2020
1 parent ce2db90 commit 59bf8ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gilfoyle/root.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package gilfoyle

import (
"fmt"
"github.com/dreamvo/gilfoyle"
"go.uber.org/zap"
"os"

"github.com/spf13/cobra"
Expand Down Expand Up @@ -40,7 +40,7 @@ func initConfig() {
// Execute is a function that executes the root command
func Execute() {
if err := rootCmd.Execute(); err != nil {
gilfoyle.Logger.Error("Root command failed to initialize", zap.Error(err))
fmt.Printf("root command failed to initialize: %s\n", err)
os.Exit(1)
}
}

0 comments on commit 59bf8ec

Please sign in to comment.