Skip to content

Commit

Permalink
main catch 2 stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio committed Jan 14, 2024
1 parent 3a7efb4 commit f43bd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/main-play.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func doPlayMain() {
//err2.SetFormatter(formatter.Noop) // default is formatter.Decamel

// errors are caught without specific handlers.
defer err2.Catch("CATCH")
defer err2.Catch(err2.ToStderr)

// If you don't want to use tracers or you just need a proper error handler
// here.
Expand Down

0 comments on commit f43bd01

Please sign in to comment.