From f43bd010d15b31e6ce80cd8ead1dae5ec33e99e9 Mon Sep 17 00:00:00 2001 From: Harri Lainio Date: Sun, 14 Jan 2024 10:54:29 +0200 Subject: [PATCH] main catch 2 stderr --- samples/main-play.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/main-play.go b/samples/main-play.go index 356a220..384915d 100644 --- a/samples/main-play.go +++ b/samples/main-play.go @@ -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.