Skip to content

Conversation

@jgowdy-godaddy
Copy link
Contributor

Summary

Enhanced error messages with additional context to aid debugging in production environments.

Changes

  • Database connection errors now include the DB type (mysql/postgres)
  • Replica read consistency errors show the attempted value
  • Unknown metastore type errors list valid options
  • KMS creation errors include the KMS type and configuration
  • AWS KMS errors include the preferred region

Implementation

  • All errors now use fmt.Errorf with error wrapping for better stack traces
  • Log messages provide more context while maintaining backward compatibility
  • No functional changes, only improved error reporting

Test plan

  • All existing tests pass
  • Error messages verified in test output
  • No breaking changes to error handling API

Enhanced error messages with additional context to aid debugging:
- Database connection errors now include the DB type (mysql/postgres)
- Replica read consistency errors show the attempted value
- Unknown metastore type errors list valid options
- KMS creation errors include the KMS type and configuration
- AWS KMS errors include the preferred region

All errors now use fmt.Errorf with error wrapping for better stack traces.
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