Skip to content

Return errcode from HasBlob rather than error #409

@TomSweeneyRedHat

Description

@TomSweeneyRedHat

The code in docker_image_dest.go:HasBlob() (https://github.com/containers/image/blob/master/docker/docker_image_dest.go#L193-L205) returns an error which then has to be parsed to determine if the problem was an authorization error, read error from the destination, or other error. It would be good if it could also (or maybe instead) return an error code. Then code like what was done in containers/buildah#406 for GetFailureCauses() could check the code rather than parsing the returned error. This was a suggestion from @ripcurld0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions