This commit is contained in:
2023-12-21 22:13:18 +03:00
parent a6f51d94a0
commit 85a42dc405
2 changed files with 7 additions and 1 deletions

View File

@ -34,6 +34,10 @@ func (c *Client) GetBlockGoodsCategory(ctx context.Context, idC int, idR int, so
defer resp.Body.Close()
if resp.StatusCode != 200 {
return nil, fmt.Errorf("status code: %d", resp.StatusCode)
}
goods, err := parseGoodsCategory(resp.Body)
if err != nil {
return nil, fmt.Errorf("parse goods category: %w", err)