|
|
@@ -39,7 +39,7 @@ See [the documentation for `Frame.Format`](https://godoc.org/github.com/pkg/erro
|
|
|
|
|
|
## Retrieving the cause of an error
|
|
|
|
|
|
-Using `errors.Wrap` constructs a stack of errors, adding context to the preceding error. Depending on the nature of the error it may be necessary to recurse the operation of errors.Wrap to retrieve the original error for inspection. Any error value which implements this interface can be inspected by `errors.Cause`.
|
|
|
+Using `errors.Wrap` constructs a stack of errors, adding context to the preceding error. Depending on the nature of the error it may be necessary to reverse the operation of errors.Wrap to retrieve the original error for inspection. Any error value which implements this interface can be inspected by `errors.Cause`.
|
|
|
```go
|
|
|
type causer interface {
|
|
|
Cause() error
|