Skip to content

Commit 2208d3b

Browse files
authored
Return error for 422 Unprocessable Entity in mirror client (#1056)
1 parent 2bf4268 commit 2208d3b

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

client/mirror/client.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,6 @@ func (c *Client) pushEntries(ctx context.Context, uploadStart, uploadEnd uint64,
244244
return nil, parseConflict(resp.Body)
245245
}
246246

247-
if resp.StatusCode == http.StatusUnprocessableEntity {
248-
return nil, ErrConflict{}
249-
}
250-
251247
if resp.StatusCode != http.StatusOK {
252248
body, _ := io.ReadAll(resp.Body)
253249
return nil, fmt.Errorf("add-entries failed with status %d: %s", resp.StatusCode, string(body))

0 commit comments

Comments
 (0)