diff --git a/README.md b/README.md index e940283..1bf34ae 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ It also generates a stack trace when the error is created, so you can see where ```go ErrExample := jerror.New("error") err := ErrExample.New() - spew.Dump(err.Frames) + spew.Dump(err.Frames()) // ([]jerror.Frame) (len=3 cap=4) { // (jerror.Frame) { // Function: (string) (len=35) "github.com/jfontan/jerror.TestStack", diff --git a/jerror.go b/jerror.go index 88df41b..56da616 100644 --- a/jerror.go +++ b/jerror.go @@ -3,6 +3,8 @@ Package jerror is a helper to create errors. It supports creating parametrized messages to give more information on the error and easier way of wrapping. These errors are compatible with standard errors.Is and errors.Unwrap. +More information at http://github.com/jfontan/jerror + Example: ErrCannotOpen := jerror.New("can not open file %s")