devcontainers / devcontainers/cli
thrown value in `inspectDockerImage` obfuscates the underlying issue
- Ngôn ngữ chính
- TypeScript
- Star
- 3k
- Fork
- 457
- Merge trung bình
- 13 giờ 17 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
The thrown value here (`err` instead of `_err`) obfuscates any error from the pull in the final result. The real error will be higher up in the logs, but it might be more helpful (especially in the codespaces case) to throw the result of the 'pull'. Eg:
```
Error response from daemon: Get \"https://mcr.microsoft.com/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)\r\n`
```
https://github.com/devcontainers/cli/blob/efb3ffca505e252a58d8bf4d48da5ffe4becf0e2/src/spec-node/utils.ts#L237
Hướng dẫn đóng góp
Hướng nghiên cứu
Mở src/spec-node/utils.ts ở khoảng dòng 237 và kiểm tra nhánh lỗi của inspectDockerImage. So sánh các giá trị được ném ra từ thao tác pull với logic catch xung quanh, sau đó xác minh rằng lỗi cuối cùng vẫn giữ lại các chi tiết về lỗi pull Docker được hiển thị trong issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- docker, typescript
- Lĩnh vực
- devops, tooling
- Loại issue
- Lỗi
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 35/100