Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 435 Bytes

README.md

File metadata and controls

21 lines (11 loc) · 435 Bytes

we

"wrapped error" - Yet another package to ease error handling. Primary purpose is to make a log line that shows the call graph.

Any time you return err do return we.New(err) instead.

Usage

we.New(e) => "pkg.func(): e.Error()"

we.New(e, 42) => "pkg.func(42): e.Error()"

we.Newf(e, "foo=%d", 42) => "pkg.func(foo=42): e.Error()"

License

2018, Tom Spangebu [email protected]

CC0, see LICENSE/COPYING