mirror of
https://github.com/containers/podman.git
synced 2025-10-26 02:35:43 +08:00
Merge pull request #9369 from vrothberg/startup-errors
correct startup error message
This commit is contained in:
@ -158,7 +158,7 @@ func persistentPreRunE(cmd *cobra.Command, args []string) error {
|
|||||||
|
|
||||||
// Prep the engines
|
// Prep the engines
|
||||||
if _, err := registry.NewImageEngine(cmd, args); err != nil {
|
if _, err := registry.NewImageEngine(cmd, args); err != nil {
|
||||||
return errors.Wrapf(err, "Cannot connect to the Podman socket, make sure there is a Podman REST API service running.")
|
return err
|
||||||
}
|
}
|
||||||
if _, err := registry.NewContainerEngine(cmd, args); err != nil {
|
if _, err := registry.NewContainerEngine(cmd, args); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@ -124,7 +124,7 @@ func NewConnectionWithIdentity(ctx context.Context, uri string, identity string)
|
|||||||
|
|
||||||
ctx = context.WithValue(ctx, clientKey, &connection)
|
ctx = context.WithValue(ctx, clientKey, &connection)
|
||||||
if err := pingNewConnection(ctx); err != nil {
|
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
|
return ctx, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user