mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
jellyseerr: fix error message parsing
was overriding the err value and so the route that parsed the error message never got hit.
This commit is contained in:
@@ -92,8 +92,9 @@ func (js *Jellyseerr) req(mode string, uri string, data any, queryParams url.Val
|
||||
var responseText string
|
||||
defer resp.Body.Close()
|
||||
if response || err != nil {
|
||||
responseText, err = js.decodeResp(resp)
|
||||
if err != nil {
|
||||
var decodeErr error
|
||||
responseText, decodeErr = js.decodeResp(resp)
|
||||
if decodeErr != nil {
|
||||
return responseText, resp.StatusCode, err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user