summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-01-08 11:11:56 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2021-01-09 04:19:39 -0500
commitea68f178e062092ee720c5f293e6b551dabf8c44 (patch)
tree71475b80dc28f4142846be1cafd55523baad11cb
parent49db79e735acd2c693762eaff62680cd9a8cb60b (diff)
downloadpodman-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>
-rw-r--r--cmd/podman/root.go2
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