Skip to content

Commit f43bd01

Browse files
committed
main catch 2 stderr
1 parent 3a7efb4 commit f43bd01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/main-play.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func doPlayMain() {
129129
//err2.SetFormatter(formatter.Noop) // default is formatter.Decamel
130130

131131
// errors are caught without specific handlers.
132-
defer err2.Catch("CATCH")
132+
defer err2.Catch(err2.ToStderr)
133133

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

0 commit comments

Comments
 (0)