sqlite: fix LookupPod

To return the error message expected by the system tests.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
Valentin Rothberg committed 2023-02-23 13:42:41 +01:00
1 parent 19c2f37ba5
commit efe7aeb1da
1 file changed
+1 -1
+1 -1
View File
@@ -1299,7 +1299,7 @@ func (s *SQLiteState) LookupPod(idOrName string) (*Pod, error) {
foundResult = true
}
if !foundResult {
return nil, define.ErrNoSuchPod
return nil, fmt.Errorf("no pod with name or ID %s found: %w", idOrName, define.ErrNoSuchPod)
}
return s.createPod(rawJSON)