mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix: date time and improve erorrs (#22)
This commit is contained in:
parent
c372ca4ddf
commit
d4aa2027c0
13 changed files with 84 additions and 73 deletions
|
@ -74,7 +74,7 @@ func (c *client) post(endpoint string, data interface{}) (*http.Response, error)
|
|||
return nil, errors.New("unauthorized: bad credentials")
|
||||
} else if res.StatusCode != http.StatusOK {
|
||||
log.Error().Err(err).Msgf("radarr client request error: %v", reqUrl)
|
||||
return nil, nil
|
||||
return nil, errors.New("radarr: bad request")
|
||||
}
|
||||
|
||||
// return raw response and let the caller handle json unmarshal of body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue