We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88baeb7 commit 1454985Copy full SHA for 1454985
err2.go
@@ -106,9 +106,10 @@ func Handle(err *error, a ...any) {
106
// behavior with functions like err2.SetErrorTrace, assert.SetDefault, and
107
// logging settings. Start with the defaults and simplest version of Catch:
108
//
109
-// defer err2.Catch() // writes errors to logs and panic traces to stderr
+// defer err2.Catch()
110
111
-// Catch support logging as well:
+// In default the above writes errors to logs and panic traces to stderr.
112
+// Naturally, you can annotate logging:
113
114
// defer err2.Catch("WARNING: caught errors: %s", name)
115
0 commit comments