Skip to content

Commit

Permalink
skip json decode error
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoyamachi committed Mar 4, 2020
1 parent b750e5f commit 252f51e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/provider/dockerhub/dockerhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ func getTagResponse(ctx context.Context, auth dockertypes.AuthConfig, timeout ti
log.Logger.Debugf("url=%s,repository=%s", url, repository)
var response tagsResponse
if _, err := getJSON(ctx, url, auth, timeout, &response); err != nil {
return response, err
// only notice error
log.Logger.Errorf("invalid response at %s", url)
}

return response, nil
Expand Down

0 comments on commit 252f51e

Please sign in to comment.