pkg / errors

Simple error handling primitives
https://godoc.org/github.com/pkg/errors
BSD 2-Clause "Simplified" License
8.18k stars 692 forks source link

Helper to handle errors for the chain functions (that return errors). #4

Closed msoap closed 8 years ago

msoap commented 8 years ago

Example of helper function: https://github.com/msoap/shell2http/blob/master/shell2http.go#L430 Example of usage: https://github.com/msoap/shell2http/blob/master/shell2http.go#L409

If such a feature would be useful? I do PR

davecheney commented 8 years ago

Thank you for your request but this is not something I plan t add. If you wish you can fork this package and add the feature to your fork, it will continue to be compatible with errors.Cause as the only requirement is a Cause() error method.