Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Releases: jjeffery/errors

Implement Unwrap() method

01 Mar 01:22
Compare
Choose a tag to compare

This release implements the Unwrap() method for all error types that have a Cause() method.

The Unwrap() method implements the Wrapper interface defined in the Go 2 draft designs for error inspection and printing.

Note that this release does not change the fact that use of this package is deprecated. It is intended to make this package usable with the new error inspection features, assuming that they make it into the Go standard library in a future release.

Patch to Cause() function

31 Mar 03:54
Compare
Choose a tag to compare

This release patches the Cause(err error) function so that it will always return non-nil if its argument is non-nil.

A problem was encountered with the popular github.com/gorilla/securecookie package. Errors returned by this package have a Cause() method, but sometimes this method will return nil if there was no cause. This in turn would mean that the Cause(err error) function in this package would return nil, even though it was passed a non-nil error.

The implementation has changed now so that if Cause(err error) is passed a non-nil error, it will always return a non-nil value.

Fix test breakages, use dep for dependencies.

19 Aug 07:39
Compare
Choose a tag to compare

This release updates some tests that were broken because of changes to the dependent kv package.

Added use of the dep tool. Use of this package should help prevent breakage like this in future.

The travis CI build only builds for go versions 1.7 and 1.8.

v1.0

19 Aug 05:49
Compare
Choose a tag to compare

Initial release