Skip to content

feat: include AWS profile in error messages#177

Merged
dirkpetersen merged 1 commit intomainfrom
dev
Nov 12, 2025
Merged

feat: include AWS profile in error messages#177
dirkpetersen merged 1 commit intomainfrom
dev

Conversation

@dirkpetersen
Copy link
Copy Markdown
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 <noreply@anthropic.com>
@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.

1 participant