Skip to content

Conversation

@chungjac
Copy link
Contributor

@chungjac chungjac commented Mar 14, 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.


Screenshot 2025-03-17 at 10 01 53 AM
  • 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.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions
Copy link

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

@chungjac chungjac force-pushed the failure-case branch 5 times, most recently from 33d79cb to 283b817 Compare March 17, 2025 16:57
@chungjac chungjac changed the title fix(amazonq): show customer facing error message fix(amazonq): /test: show customer facing error message Mar 17, 2025
@chungjac chungjac force-pushed the failure-case branch 2 times, most recently from a02882f to 220cd04 Compare March 17, 2025 17:29
@chungjac chungjac marked this pull request as ready for review March 17, 2025 17:36
@chungjac chungjac requested review from a team as code owners March 17, 2025 17:36
@jpinkney-aws
Copy link
Contributor

Can you elaborate on what this PR is doing? What was the behaviour before and what is it now?

@chungjac
Copy link
Contributor Author

Can you elaborate on what this PR is doing? What was the behaviour before and what is it now?

Updated PR description

@chungjac chungjac changed the title fix(amazonq): /test: show customer facing error message fix(amazonq): /test: show descriptive error message Mar 17, 2025
@chungjac chungjac merged commit 86f87a5 into aws:master Mar 18, 2025
25 of 26 checks passed
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.
@chungjac chungjac deleted the failure-case branch April 16, 2025 21:43
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.

3 participants