Skip to content

Commit

Permalink
fix: include error details if a docker connection fails (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyecusch authored Nov 27, 2024
1 parent b9bd48b commit d73a459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func VerifyDockerIsAvailable() error {

// Perform a Docker operation to verify availability
if _, pingErr := cli.Ping(context.Background()); pingErr != nil {
return fmt.Errorf("Docker daemon is not running, please start the docker daemon and try again")
return fmt.Errorf("failed to connect to Docker: %w", pingErr)
}

return nil
Expand Down

0 comments on commit d73a459

Please sign in to comment.