Improve NoRegionError message with guidance on setting a region#3731
Open
viveka76 wants to merge 4 commits into
Open
Improve NoRegionError message with guidance on setting a region#3731viveka76 wants to merge 4 commits into
viveka76 wants to merge 4 commits into
Conversation
1 task
Contributor
|
@viveka76 , thank you for the PR! I agree, this error message could be more helpful. There are a few notes before we can merge:
|
SamRemis
requested changes
Jun 22, 2026
Correct error message Co-authored-by: SamRemis <sjremis94@gmail.com>
unit tests not needed Co-authored-by: SamRemis <sjremis94@gmail.com>
Author
|
@SamRemis Thank you for your valuable suggestions, I have applied your suggestions and also added the AI use in commit message |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes: Expands the
NoRegionErrormessage to tell usershow to set a region (region_name argument, AWS_DEFAULT_REGION, or
~/.aws/config), and calls out the common mistake of putting region in
~/.aws/credentials.
Message text only — no change to resolution behavior, precedence, or the
exception type. Backwards compatible. Unit test and changelog entry included.
By submitting this pull request, I confirm that you can use, modify, copy,
and redistribute this contribution, under the terms of your choice.
This pr message is generated by AI tools, and reviewed by Vivek Shaw