Update errors.go

fix wrapErr
This commit is contained in:
Iuga Mihai 2020-09-30 15:57:43 +03:00 committed by GitHub
parent a472cff46d
commit 2173143b32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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{}{