Commit 86f87a5
authored
fix(amazonq): /test: show descriptive error message (#6795)
## 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.1 parent 33b526a commit 86f87a5
File tree
3 files changed
+17
-11
lines changed- packages
- amazonq/.changes/next-release
- core/src/codewhisperer
- commands
- service
3 files changed
+17
-11
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
115 | | - | |
| 113 | + | |
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
121 | 119 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 120 | | |
128 | 121 | | |
129 | 122 | | |
| |||
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | | - | |
197 | | - | |
198 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
199 | 208 | | |
200 | 209 | | |
201 | 210 | | |
| |||
0 commit comments