Skip to content

Commit

Permalink
fixup rest unmarshal body error not being checked
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed Jan 9, 2020
1 parent 5824eb8 commit bcb3d12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion private/protocol/rest/unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.rest.UnmarshalMeta
func Unmarshal(r *request.Request) {
if r.DataFilled() {
v := reflect.Indirect(reflect.ValueOf(r.Data))
unmarshalBody(r, v)
if err := unmarshalBody(r, v); err != nil {
r.Error = err
}
}
}

Expand Down

0 comments on commit bcb3d12

Please sign in to comment.