diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-29 10:31:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 10:31:06 -0400 |
commit | 512a994e8b422f2bdd77c521f7042cd04cfb90db (patch) | |
tree | a643e04c12ed37a62963d8aeea0024e18e9b0a27 /pkg/bindings | |
parent | 453c49c488dd6518b33393e04c04ebc32ce61ee9 (diff) | |
parent | 97f755f87b786884b293098646e5f242e119348c (diff) | |
download | podman-512a994e8b422f2bdd77c521f7042cd04cfb90db.tar.gz podman-512a994e8b422f2bdd77c521f7042cd04cfb90db.tar.bz2 podman-512a994e8b422f2bdd77c521f7042cd04cfb90db.zip |
Merge pull request #11637 from ashley-cui/warn
[NO TESTS NEEDED] Remind user to check connection or use podman machine
Diffstat (limited to 'pkg/bindings')
-rw-r--r-- | pkg/bindings/connection.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/bindings/connection.go b/pkg/bindings/connection.go index 4127ad2f0..e2c46e481 100644 --- a/pkg/bindings/connection.go +++ b/pkg/bindings/connection.go @@ -112,12 +112,12 @@ func NewConnectionWithIdentity(ctx context.Context, uri string, identity string) return nil, errors.Errorf("unable to create connection. %q is not a supported schema", _url.Scheme) } if err != nil { - return nil, errors.Wrapf(err, "failed to create %sClient", _url.Scheme) + return nil, errors.Wrapf(err, "unable to connect to Podman. failed to create %sClient", _url.Scheme) } 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 the connection to the Linux system, or use `podman machine` to create/start a Linux VM.") + return nil, errors.Wrap(err, "unable to connect to Podman socket") } return ctx, nil } |