-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Standardized aws: [ERROR]: format for all CLI error messages #9889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standardized aws: [ERROR]: format for all CLI error messages #9889
Conversation
ashovlin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good! Is there any way with ruff to protect against new sys.stderr.write calls moving forward? Don't go too far out of the way, but curious if there's a quick win.
|
Thanks! I've thought about this a bit. Unfortunately Ruff doesn't have a built-in way to ban specific method calls like There are already several existing |
Sounds good for now. I don't think the risk is too high of a new exception slipping through, since these are intended for humans, not automation. Can possibly revisit if ruff adds plugins/custom rules. |
Issue #, if available: CLI-7288
Description of changes: Standardizes all AWS CLI error messages to use the format
aws: [ERROR]: <error-message>.Behavior:
Before:
After:
Backward Compatibility
Error message content is preserved exactly. Only the prefix changes from
error:to[ERROR]:. Scripts parsing error content should continue to work with minimal modifications.Description of tests:
Note: Marked as enhancement rather than feature since this will be released alongside the Structured Error PR (#9890) which triggers the minor version bump.