latch
243919d7 - fix: treat every docker push error as fatal

Commit
99 days ago
fix: treat every docker push error as fatal `print_upload_logs` acted on one error string, "denied: Your authorization token has expired.". Every other error in the stream - a failed layer upload, a denied push, ECR throttling, a network reset - fell through and was recorded as progress. The caller then recorded the image and printed a green success message for an image that never reached the registry. Any error now ends the upload with exit 1 and prints the error verbatim. The same parser reads the pull stream, so a failed pull is no longer silent either. Move the cursor below the progress block before printing, so the error does not overwrite a progress line, and raise `click.exceptions.Exit` rather than calling `sys.exit` so click can clean up.
Author
Committer
Parents
Loading