-
Notifications
You must be signed in to change notification settings - Fork 749
fix(amazonq): /test: show descriptive error message #6795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
|
33d79cb to
283b817
Compare
a02882f to
220cd04
Compare
changelog logic
Contributor
|
Can you elaborate on what this PR is doing? What was the behaviour before and what is it now? |
Contributor
Author
Updated PR description |
laileni-aws
reviewed
Mar 17, 2025
laileni-aws
reviewed
Mar 17, 2025
jpinkney-aws
approved these changes
Mar 18, 2025
laileni-aws
approved these changes
Mar 18, 2025
jpinkney-aws
pushed a commit
to jpinkney-aws/aws-toolkit-vscode
that referenced
this pull request
Mar 19, 2025
## Problem Currently, when test generation fails, users see a generic error message: `Sorry, I am experiencing technical issues at the moment. Please try again in a few minutes.` This message doesn't provide actionable information to help users resolve the issue. ## Solution Enhanced error handling to display specific error messages from the backend. For example, when a test generation command is malformed, users will now see a descriptive message like: `I apologize, but I couldn't process your /test instruction. Try: /test and optionally specify a class, function or method.` These targeted error messages help users understand and correct their inputs. --- <img width="1722" alt="Screenshot 2025-03-17 at 10 01 53 AM" src="https://github.com/user-attachments/assets/0f2c3279-de93-4e20-9263-cdf1eebf4603" /> - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
jpinkney-aws
pushed a commit
to jpinkney-aws/aws-toolkit-vscode
that referenced
this pull request
Mar 20, 2025
## Problem Currently, when test generation fails, users see a generic error message: `Sorry, I am experiencing technical issues at the moment. Please try again in a few minutes.` This message doesn't provide actionable information to help users resolve the issue. ## Solution Enhanced error handling to display specific error messages from the backend. For example, when a test generation command is malformed, users will now see a descriptive message like: `I apologize, but I couldn't process your /test instruction. Try: /test and optionally specify a class, function or method.` These targeted error messages help users understand and correct their inputs. --- <img width="1722" alt="Screenshot 2025-03-17 at 10 01 53 AM" src="https://github.com/user-attachments/assets/0f2c3279-de93-4e20-9263-cdf1eebf4603" /> - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
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.
Problem
Currently, when test generation fails, users see a generic error message:
Sorry, I am experiencing technical issues at the moment. Please try again in a few minutes.This message doesn't provide actionable information to help users resolve the issue.Solution
Enhanced error handling to display specific error messages from the backend. For example, when a test generation command is malformed, users will now see a descriptive message like:
I apologize, but I couldn't process your /test instruction. Try: /test and optionally specify a class, function or method.These targeted error messages help users understand and correct their inputs.feature/xbranches will not be squash-merged at release time.