You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve error messages structure, as it makes it easier to solve a problem for end-user.
For example:
❌ Error checking target state. Unexpected error: The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.
Can be
❌ Error checking target state.
⚠️ The SSO session associated with this profile has expired.
To refresh the SSO session, please run the following command with the corresponding profile:
aws sso login --profile <profile_name>
Proposed Solution
Separate error message from suggested fix, when it's possible
Related Issues/PRs
not yet : )
The text was updated successfully, but these errors were encountered:
Basti has a mechanism for matching errors and enhancing their error messages. The "Unexpected error: " part of the error message you received means that the SSO error was not matched and the original error message (from AWS SDK) was shown.
To cover the error with enhanced handling, you have to:
Identify the AWS error and wrap it with a Basti error in all AWS Clients. (example)
Create a detailProvider for the new error. Detail Providers generate error details (messaged) for the known errors: (example)
I'm sorry, but I'm closing this issue to clean up a bit. The existing error message provides enough information for the user to solve the problem. It literally tells the solution 🙂
To refresh this SSO session run aws sso login with the corresponding profile.
Feature Description
Improve error messages structure, as it makes it easier to solve a problem for end-user.
For example:
Can be
Proposed Solution
Separate error message from suggested fix, when it's possible
Related Issues/PRs
not yet : )
The text was updated successfully, but these errors were encountered: