Skip to content

Commit

Permalink
Improve error message when the the podman service is not enabled
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rhatdan committed Jan 9, 2021
1 parent 49db79e commit ea68f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/podman/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea68f17

Please sign in to comment.