From efe7aeb1da2855e192ccd08da4980f624c4e309a Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Thu, 23 Feb 2023 13:42:41 +0100 Subject: [PATCH] sqlite: fix LookupPod To return the error message expected by the system tests. Signed-off-by: Valentin Rothberg --- libpod/sqlite_state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpod/sqlite_state.go b/libpod/sqlite_state.go index 26270f1ff5..5e10ae7946 100644 --- a/libpod/sqlite_state.go +++ b/libpod/sqlite_state.go @@ -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)