During the creation of a new builder object there are errors that are only logged into "logrus.Debugf". If in the end of the process "ref" or "img" are nil and "options.FromImage" is set then it means that there was an issue. By default, it was assumed that the image name is wrong. Yet, this assumption isn't always correct. For example, it might fail due to authorization or connection errors. In this patch, I am attempting to fix this problem by checking the last error stored in the "err" variable and returning the cause of the failure. Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com> Closes: #406 Approved by: rhatdan |
||
|---|---|---|
| .. | ||
| util.go | ||