Skip to content

[image builder] return meaningful error messages to users when an image build fails #15572

Closed as not planned
@kylos101

Description

@kylos101

Is your feature request related to a problem? Please describe

When image builds fail now, we return a generic message and error code, such as headless task failed: exit status 1

Describe the behaviour you'd like

When a docker build fails, after we've started interpretting the Dockerfile, return the actual error to the user (like a base image that doesn't exist), rather than headless task failed with an error code.

When a docker build fails, before we've started interpretting the Dockerfile, continue to return a generic message and error code.

When a failure happen, especially for user failures, log the error they would have seen (so we can more concretely know what failed).

Additional context

#14919
https://github.com/gitpod-io/gitpod/issues?q=is%3Aissue+is%3Aopen+image+build+error+message

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions