Skip to content

Commit

Permalink
(chore) improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Sep 18, 2024
1 parent 0d3cd8d commit f43a121
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ func Execute() {

if cmd != "" {
v += fmt.Sprintf("An error occured running the `%s` command\n", cmd)
} else {
v += "An error has occured. "
}

v += "The error was:\n\n" + fmt.Sprintf("```%s```", err)
Expand Down

0 comments on commit f43a121

Please sign in to comment.