Fix output of list action when it is failed

Signed-off-by: Song Shukun <song.shukun@fujitsu.com>
(cherry picked from commit 1ff7202a98)
release-3.1
Song Shukun 6 years ago committed by Matt Farina
parent 8d012c25ff
commit 3fa62f4da1
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -165,6 +165,10 @@ func (l *List) Run() ([]*release.Release, error) {
return true return true
}) })
if err != nil {
return nil, err
}
if results == nil { if results == nil {
return results, nil return results, nil
} }

Loading…
Cancel
Save