Skip to content

Commit

Permalink
feat: better rendering of fatal errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
atombender committed Oct 3, 2022
1 parent 5090beb commit cfccec1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ func main() {
}

func fail(format string, args ...interface{}) {
_, _ = fmt.Fprintf(os.Stderr, format, args...)
msg := fmt.Sprintf(format, args...)
_, _ = fmt.Fprintf(os.Stderr, fmt.Sprintf("fatal: %s\n", msg))
os.Exit(1)
}

Expand Down

0 comments on commit cfccec1

Please sign in to comment.