Skip to content

Commit

Permalink
fix resty stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jan 26, 2023
1 parent 5e51085 commit dfa2d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ovenmedia/ovenmedia.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (o *OvenMedia) restyPost(url string, body interface{}) (*resty.Response, er
return nil, err
}
if !strings.Contains(resp.Status(), "200") {
err = fmt.Errorf("resp -> %v | status_code: %s", resp, resp.Status())
err = fmt.Errorf(resp)
o.debugPrint(err)
return nil, err
}
Expand All @@ -68,7 +68,7 @@ func (o *OvenMedia) restyGet(url string, queryParams map[string]string) (*resty.
}
if !strings.Contains(resp.Status(), "200") {
resp.Body()
err = fmt.Errorf("resp -> %v | status_code: %s", resp, resp.Status())
err = fmt.Errorf(resp)
o.debugPrint(err)
return nil, err
}
Expand Down

0 comments on commit dfa2d35

Please sign in to comment.