Merge pull request #18 from miiu96/fix-wrapErr

Fix wrap err
This commit is contained in:
Patrick O'Grady 2020-09-30 15:01:32 -07:00 committed by GitHub
commit e1ad97731a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,6 +182,7 @@ 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{}{