keep existing behavior of returning ErrReleaseNotFound when release(s) failed to decode

Signed-off-by: Mike Ng <ming@redhat.com>
pull/8470/head
Mike Ng 4 years ago
parent b86105aebc
commit 3be333b73b

@ -324,6 +324,10 @@ func (s *SQL) Query(labels map[string]string) ([]*rspb.Release, error) {
releases = append(releases, release) releases = append(releases, release)
} }
if len(releases) == 0 {
return nil, ErrReleaseNotFound
}
return releases, nil return releases, nil
} }

Loading…
Cancel
Save