Skip to content

Commit ce0b930

Browse files
committed
Error handling in UTG
1 parent 4f8a81c commit ce0b930

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/core/src/amazonqTest/error.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/*!
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0
4-
*/
5-
import { CodeWhispererConstants } from '../codewhisperer/indexNode'
4+
// */
65
import { ToolkitError } from '../shared/errors'
76

87
export const techinalErrorCustomerFacingMessage =
@@ -55,12 +54,7 @@ export class TestGenTimedOutError extends TestGenError {
5554
}
5655
export class TestGenStoppedError extends TestGenError {
5756
constructor() {
58-
super(
59-
CodeWhispererConstants.unitTestGenerationCancelMessage,
60-
'TestGenCancelled',
61-
'400',
62-
CodeWhispererConstants.unitTestGenerationCancelMessage
63-
)
57+
super('Unit test generation cancelled.', 'TestGenCancelled', '400', 'Unit test generation cancelled.')
6458
}
6559
}
6660
export class TestGenFailedError extends TestGenError {

0 commit comments

Comments
 (0)