From 17093eb5e360594433f48dbc73a40889c521fc59 Mon Sep 17 00:00:00 2001 From: Thomas Meckel <14177833+tmeckel@users.noreply.github.com> Date: Wed, 11 Mar 2020 18:15:36 +0100 Subject: [PATCH] Fix bug that UnmarshalCollectionBody doesn't return an error created by UnmarshalCollectionJson (#48) Co-authored-by: Thomas Meckel --- azuredevops/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azuredevops/client.go b/azuredevops/client.go index 1309086d..75b61e74 100644 --- a/azuredevops/client.go +++ b/azuredevops/client.go @@ -315,6 +315,9 @@ func (client *Client) UnmarshalCollectionBody(response *http.Response, v interfa body = trimByteOrderMark(body) err = client.UnmarshalCollectionJson(body, v) + if err != nil { + return err + } } return nil }