Skip to content

Commit

Permalink
chore(main): only print error once
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Dec 4, 2023
1 parent fd45b85 commit 707b88e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ func main() {
defer cancel()

if err := cmd.New().ExecuteContext(ctx); err != nil {
color.Red("Error: %v", err)
color.Red("%+v", err)
color.Red("Error: %+v", err)
os.Exit(1)
}
}

0 comments on commit 707b88e

Please sign in to comment.