devcontainers / devcontainers/cli

thrown value in `inspectDockerImage` obfuscates the underlying issue

Abierto
#642 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
3k
Forks
457
Merge medio
13 h 17 min
PR fusionados (30 d)
6

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.