Closed cgonyeo closed 7 years ago
I don't particularly like this implementation due to the .Error() == "string"
check, but as far as I can tell the error at that point is just created via an errors.New(), so I don't know what else I have to work with.
I say this because fmt.Printf("#%T\n")
resulted in an *errors.errorString
.
@s-urbaniak can you please have a review pass on this?
Yup, I like your implementation a lot better. Just pushed your changes.
If fetching a dependency for a run command, and the registry returns a 404 error, intercept that and print a more user-friendly error saying that the dependency doesn't exist.
Example:
Fixes https://github.com/containers/build/issues/283