mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(actions): lidarr properly handle rejected (#404)
fix(actions): lidarr properly reject instead of error
This commit is contained in:
parent
44dfae8100
commit
f258cdd42b
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ func (c *client) Push(release Release) ([]string, error) {
|
||||||
if pushResponse.Rejected {
|
if pushResponse.Rejected {
|
||||||
rejections := strings.Join(pushResponse.Rejections, ", ")
|
rejections := strings.Join(pushResponse.Rejections, ", ")
|
||||||
|
|
||||||
return pushResponse.Rejections, errors.New("lidarr push rejected: %s - reasons: %q", release.Title, rejections)
|
c.Log.Printf("lidarr release/push rejected %v reasons: %q\n", release.Title, rejections)
|
||||||
|
return pushResponse.Rejections, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue