Update errors.go
fix wrapErr
This commit is contained in:
parent
a472cff46d
commit
2173143b32
1 changed files with 2 additions and 0 deletions
|
@ -182,6 +182,8 @@ func wrapErr(rErr *types.Error, err error) *types.Error {
|
|||
newErr := &types.Error{
|
||||
Code: rErr.Code,
|
||||
Message: rErr.Message,
|
||||
Retriable: rErr.Retriable,
|
||||
|
||||
}
|
||||
if err != nil {
|
||||
newErr.Details = map[string]interface{}{
|
||||
|
|
Loading…
Reference in a new issue