Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.3 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.3 KB

weberr logo

weberr

Package weberr based on https://github.com/pkg/errors with a few additions:

  • Set an error type that corresponds to HTTP status returned by this error
  • Set a user friendly error message (in addition to the error message that will be logged)
  • Add arbitrary details to the error

Go Report Card Build Status GoDoc License

go get github.com/zgalor/weberr

Read the package documentation for more information.

Divergences from pkg/errors

  • We chose weberr.Wrapf(nil, ...) and similar wrapping functions should return a new error, whereas errors.Wrapf(nil, ...) historically returns nil.

License

BSD-2-Clause

Logo

[ awesome logo image by gophers... ]