wrapInternal wraps an error with a prefix as an Internal error. The original error cause is accessible by github.com/pkg/errors.Cause.
(err error, prefix string)
| 829 | // wrapInternal wraps an error with a prefix as an Internal error. |
| 830 | // The original error cause is accessible by github.com/pkg/errors.Cause. |
| 831 | func wrapInternal(err error, prefix string) twirp.Error { |
| 832 | return twirp.InternalErrorWith(&wrappedError{prefix: prefix, cause: err}) |
| 833 | } |
| 834 | |
| 835 | type wrappedError struct { |
| 836 | prefix string |
no outgoing calls
no test coverage detected