Skip to content

Commit

Permalink
Fail on non ok status codes in dac fulfillemnt post
Browse files Browse the repository at this point in the history
  • Loading branch information
idmitriev committed Sep 14, 2023
1 parent 2093302 commit ec4889a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dac/pkg/collection_point.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (d dacCollectionPoint) SaveFulfillment(fulfillment Fulfillment) error {
return err
} else if response.StatusCode != http.StatusOK {
body, _ := io.ReadAll(response.Body)
return fmt.Errorf("DAC collection point post: %d %w", response.StatusCode, body)
return fmt.Errorf("DAC collection point post: %d %s", response.StatusCode, string(body))
}

return nil
Expand Down

0 comments on commit ec4889a

Please sign in to comment.