mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
formatError appended "or use --replace to instruct Podman to do so" to
every error wrapping storage.ErrDuplicateName, even for commands like
"podman manifest create" that have no --replace flag, telling users to
use a flag that does not exist.
Resolve the invoked command via ExecuteContextC and only add the hint
when that command actually defines a --replace flag.
Fixes: #24537
Signed-off-by: Salih Muhammed <root@lr0.org>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| podman | ||
| podman-mac-helper | ||
| podman-testing | ||
| podman-wslkerninst | ||
| quadlet | ||
| rootlessport | ||
| winpath | ||