mirror of
https://github.com/containers/podman.git
synced 2026-07-12 16:25:08 -04:00
In remote mode, `podman version` currently returns a connection error before printing any version information if it cannot connect to the service. Introduce a reusable `PrintVersion` helper and invoke it at the root level when a `ConnectionError` is encountered. This ensures that client information is still shown even when the server cannot be reached. Fixes: #28222 Signed-off-by: KyounghoonJang <matkimchi_@naver.com>