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)