From 2e3ba9cd996b3712e04f5a2f8682cd60bec37feb Mon Sep 17 00:00:00 2001 From: Ashley Cui Date: Tue, 10 Aug 2021 16:55:41 -0400 Subject: Change connection error to be helpful for machine users If a podman-remote connection fails, remind the user to check their linux system and podman machine vm Signed-off-by: Ashley Cui --- pkg/bindings/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/bindings/connection.go b/pkg/bindings/connection.go index 62b1655ac..cd118cbb2 100644 --- a/pkg/bindings/connection.go +++ b/pkg/bindings/connection.go @@ -117,7 +117,7 @@ func NewConnectionWithIdentity(ctx context.Context, uri string, identity string) ctx = context.WithValue(ctx, clientKey, &connection) if err := pingNewConnection(ctx); err != nil { - return nil, errors.Wrap(err, "cannot connect to the Podman socket, please verify that Podman REST API service is running") + return nil, errors.Wrap(err, "cannot connect to the Podman socket, please verify the connection to the Linux system, or use `podman machine` to create/start a Linux VM.") } return ctx, nil } -- cgit v1.2.3-54-g00ecf