Skip to content

Commit

Permalink
updating retryable error to print out the underlying errors
Browse files Browse the repository at this point in the history
  • Loading branch information
theflyingcodr committed Jan 25, 2023
1 parent 3fe97f0 commit d9f2b0d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion errs/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (e ErrInternal) Metadata() map[string]interface{} {

// Error implements the error interface.
func (e ErrInternal) Error() string {
return e.message
return fmt.Sprintf("%s: %s", e.message, e.err)
}

// Code returns the error code if there is one.
Expand Down
1 change: 0 additions & 1 deletion vendor/github.com/google/uuid/go.mod

This file was deleted.

3 changes: 0 additions & 3 deletions vendor/github.com/matryer/is/go.mod

This file was deleted.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## explicit
github.com/google/uuid
# github.com/matryer/is v1.4.0
## explicit
## explicit; go 1.14
github.com/matryer/is
# github.com/pkg/errors v0.9.1
## explicit
Expand Down

0 comments on commit d9f2b0d

Please sign in to comment.