Skip to content

Commit 3c3b4c0

Browse files
committed
fix: clarify error message when starting docker container
Error message was not indicating which Docker container failed to start, forcing the user to use a process of elimination to narrow down the problem.
1 parent e07c7ea commit 3c3b4c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/utils/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ func DockerStart(ctx context.Context, config container.Config, hostConfig contai
324324
}
325325
CmdSuggestion += fmt.Sprintf("\n%s a different %s port in %s", prefix, name, Bold(ConfigPath))
326326
}
327-
err = errors.Errorf("failed to start docker container: %w", err)
327+
err = errors.Errorf("failed to start docker container %q: %w", containerName, err)
328328
}
329329
return resp.ID, err
330330
}

0 commit comments

Comments
 (0)