Fix output of list action when it is failed

Signed-off-by: Song Shukun <song.shukun@fujitsu.com>
This commit is contained in:
Song Shukun
2020-02-20 20:52:26 +09:00
parent 598dc504d6
commit 1ff7202a98

View File

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