mirror of
https://github.com/helm/helm.git
synced 2026-04-22 23:00:01 -04:00
keep existing behavior of returning ErrReleaseNotFound when release(s) failed to decode
Signed-off-by: Mike Ng <ming@redhat.com>
(cherry picked from commit 3be333b73b)
This commit is contained in:
parent
f2d7ed8d80
commit
877276ceda
1 changed files with 4 additions and 0 deletions
|
|
@ -324,6 +324,10 @@ func (s *SQL) Query(labels map[string]string) ([]*rspb.Release, error) {
|
|||
releases = append(releases, release)
|
||||
}
|
||||
|
||||
if len(releases) == 0 {
|
||||
return nil, ErrReleaseNotFound
|
||||
}
|
||||
|
||||
return releases, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue