Skip to content

Conversation

@dirkpetersen
Copy link
Owner

Add the current AWS credentials profile to error messages when reporting bugs. This helps users identify if they're using the wrong credentials profile, which is often the root cause of issues.

Implementation details:

  • Created new get_current_aws_profile() function to retrieve the profile
  • Checks global current_aws_profile (set from --profile CLI option)
  • Falls back to reading from config.ini if not set via CLI
  • Global variable is set in main() after ConfigManager initialization
  • Keeps print_error() function clean by delegating to helper function

🤖 Generated with Claude Code

Add the current AWS credentials profile to error messages when reporting bugs. This helps users identify if they're using the wrong credentials profile, which is often the root cause of issues.

Implementation details:
- Created new get_current_aws_profile() function to retrieve the profile
- Checks global current_aws_profile (set from --profile CLI option)
- Falls back to reading from config.ini if not set via CLI
- Global variable is set in main() after ConfigManager initialization
- Keeps print_error() function clean by delegating to helper function

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@dirkpetersen dirkpetersen merged commit 6d3dc5c into main Nov 12, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants