Skip to content

Commit

Permalink
chore: clear errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Oct 17, 2024
1 parent 9248548 commit 14f86e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/meilisearch/meilisearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom
func (c *MeilisearchContainer) Address(ctx context.Context) (string, error) {
containerPort, err := c.MappedPort(ctx, defaultHTTPPort)
if err != nil {
return "", err
return "", fmt.Errorf("mapped port: %w", err)
}

host, err := c.Host(ctx)
if err != nil {
return "", err
return "", fmt.Errorf("host: %w", err)
}

return "http://" + net.JoinHostPort(host, containerPort.Port()), nil
Expand Down

0 comments on commit 14f86e0

Please sign in to comment.