diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-01-08 11:11:56 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-01-09 04:19:39 -0500 |
commit | ea68f178e062092ee720c5f293e6b551dabf8c44 (patch) | |
tree | 71475b80dc28f4142846be1cafd55523baad11cb /cmd/podman | |
parent | 49db79e735acd2c693762eaff62680cd9a8cb60b (diff) | |
download | podman-ea68f178e062092ee720c5f293e6b551dabf8c44.tar.gz podman-ea68f178e062092ee720c5f293e6b551dabf8c44.tar.bz2 podman-ea68f178e062092ee720c5f293e6b551dabf8c44.zip |
Improve error message when the the podman service is not enabled
Currently if server is not connected, we return an error message that
is confusing users on Mac and Windows boxes. The hope here is to make
it a little easier to discover that a Podman service is required.
This message is similar to what Docker puts out so people might under
stand it better.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/root.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/root.go b/cmd/podman/root.go index 1f613a4c5..0ee530242 100644 --- a/cmd/podman/root.go +++ b/cmd/podman/root.go @@ -158,7 +158,7 @@ func persistentPreRunE(cmd *cobra.Command, args []string) error { // Prep the engines if _, err := registry.NewImageEngine(cmd, args); err != nil { - return err + return errors.Wrapf(err, "Cannot connect to the Podman socket, make sure there is a Podman REST API service running.") } if _, err := registry.NewContainerEngine(cmd, args); err != nil { return err |