mirror of
https://github.com/containers/podman.git
synced 2025-10-14 09:45:59 +08:00
correct startup error message
The error message when failing to create an image engine unconditionally pointed to the Podman socket which is quite confusing when running locally. Move the error message to the point where the first ping to the service fails. [NO TESTS NEEDED] Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -124,7 +124,7 @@ func NewConnectionWithIdentity(ctx context.Context, uri string, identity string)
|
||||
|
||||
ctx = context.WithValue(ctx, clientKey, &connection)
|
||||
if err := pingNewConnection(ctx); err != nil {
|
||||
return nil, err
|
||||
return nil, errors.Wrap(err, "cannot connect to the Podman socket, please verify that Podman REST API service is running")
|
||||
}
|
||||
return ctx, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user