File tree 3 files changed +6
-6
lines changed
server/aws-lsp-codewhisperer/src
language-server/securityScan
shared/amazonQServiceManager
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -195,12 +195,14 @@ export const SecurityScanServerToken =
195
195
}
196
196
logging . log ( `Security scan failed. ${ error } ` )
197
197
securityScanTelemetryEntry . result = 'Failed'
198
- const err = getErrorMessage ( error )
199
- const exception = hasConnectionExpired ( error ) ? new AmazonQServiceInvalidConnectionError ( err ) : error
198
+ const errMessage = getErrorMessage ( error )
199
+ const exception = hasConnectionExpired ( error )
200
+ ? new AmazonQServiceInvalidConnectionError ( errMessage )
201
+ : error
200
202
201
203
return {
202
204
status : 'Failed' ,
203
- error : err ,
205
+ errorMessage : errMessage ,
204
206
exception : exception ,
205
207
} as SecurityScanResponse
206
208
} finally {
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export interface SecurityScanRequestParams extends ExecuteCommandParams {
60
60
export interface SecurityScanResponse {
61
61
status : SecurityScanStatus
62
62
findings ?: SecurityScanFindings
63
- error ?: string
63
+ errorMessage ?: string
64
64
exception ?: Error
65
65
}
66
66
Original file line number Diff line number Diff line change 1
1
// Base error class for Amazon Q
2
2
export class AmazonQError extends Error {
3
3
public code : string
4
- override message : string
5
4
constructor ( message : string , code : string ) {
6
5
super ( message )
7
6
this . name = 'AmazonQError'
8
7
this . code = code
9
- this . message = message
10
8
}
11
9
}
12
10
You can’t perform that action at this time.
0 commit comments