Errors in call to pierone.api.request were handled inconsistently
or not handled at all in some cases.
This lead to hard to understand error messages/stack traces
that were caused by HTTP errors.
In some cases error messages were outright misleading as message
"Image not found" actually meant "Cannot process at the moment".
Thus reporting images that do present in repository as missing.
This version strives not not hide or obfuscate errors in case they are not handled explicitly.
Further improvement could be to print exception's stack trace only with --verbose flag defaulting to exception's message only.
Coverage decreased (-1.08%) to 82.294% when pulling 8ebcdb739e03e1978ec88c4ce378a0d34c2b9f87 on PetrGlad:improve-http-error-handling into bfe1687bf0d03327a4707461b7b90c6943e15eed on zalando-stups:master.
Errors in call to pierone.api.request were handled inconsistently or not handled at all in some cases. This lead to hard to understand error messages/stack traces that were caused by HTTP errors. In some cases error messages were outright misleading as message "Image not found" actually meant "Cannot process at the moment". Thus reporting images that do present in repository as missing.
This version strives not not hide or obfuscate errors in case they are not handled explicitly.
Further improvement could be to print exception's stack trace only with --verbose flag defaulting to exception's message only.