From 84b5c6c713b614fa84274eafa21f0aed7c57aaab Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 27 Feb 2023 13:06:52 +0100 Subject: [PATCH] sqlite: RewritePodConfig: update error message Use the same error message as the boltdb backend. [NO NEW TESTS NEEDED] 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 e03d7ad49b..a543523923 100644 --- a/libpod/sqlite_state.go +++ b/libpod/sqlite_state.go @@ -1186,7 +1186,7 @@ func (s *SQLiteState) RewritePodConfig(pod *Pod, newCfg *PodConfig) (defErr erro } if rows == 0 { pod.valid = false - return define.ErrNoSuchPod + return fmt.Errorf("no pod with ID %s found in DB: %w", pod.ID(), define.ErrNoSuchPod) } if err := tx.Commit(); err != nil {