@@ -224,7 +224,7 @@ class IotjsDebugSession extends DebugSession {
224
224
. then ( ( ) => {
225
225
this . sendResponse ( response ) ;
226
226
} )
227
- . catch ( error => this . sendErrorResponse ( response , 0 , error ) ) ;
227
+ . catch ( error => this . sendErrorResponse ( response , 0 , ( < Error > error ) . message ) ) ;
228
228
}
229
229
230
230
protected nextRequest ( response : DebugProtocol . NextResponse , args : DebugProtocol . NextArguments ) : void {
@@ -234,7 +234,7 @@ class IotjsDebugSession extends DebugSession {
234
234
. then ( ( ) => {
235
235
this . sendResponse ( response ) ;
236
236
} )
237
- . catch ( error => this . sendErrorResponse ( response , 0 , error ) ) ;
237
+ . catch ( error => this . sendErrorResponse ( response , 0 , ( < Error > error ) . message ) ) ;
238
238
}
239
239
240
240
protected stepInRequest ( response : DebugProtocol . StepInResponse , args : DebugProtocol . StepInArguments ) : void {
@@ -244,7 +244,7 @@ class IotjsDebugSession extends DebugSession {
244
244
. then ( ( ) => {
245
245
this . sendResponse ( response ) ;
246
246
} )
247
- . catch ( error => this . sendErrorResponse ( response , 0 , error ) ) ;
247
+ . catch ( error => this . sendErrorResponse ( response , 0 , ( < Error > error ) . message ) ) ;
248
248
}
249
249
250
250
protected stepOutRequest ( response : DebugProtocol . StepOutResponse , args : DebugProtocol . StepOutArguments ) : void {
@@ -254,7 +254,7 @@ class IotjsDebugSession extends DebugSession {
254
254
. then ( ( ) => {
255
255
this . sendResponse ( response ) ;
256
256
} )
257
- . catch ( error => this . sendErrorResponse ( response , 0 , error ) ) ;
257
+ . catch ( error => this . sendErrorResponse ( response , 0 , ( < Error > error ) . message ) ) ;
258
258
}
259
259
260
260
protected pauseRequest ( response : DebugProtocol . PauseResponse , args : DebugProtocol . PauseArguments ) : void {
@@ -264,7 +264,7 @@ class IotjsDebugSession extends DebugSession {
264
264
. then ( ( ) => {
265
265
this . sendResponse ( response ) ;
266
266
} )
267
- . catch ( error => this . sendErrorResponse ( response , 0 , error ) ) ;
267
+ . catch ( error => this . sendErrorResponse ( response , 0 , ( < Error > error ) . message ) ) ;
268
268
}
269
269
270
270
protected async setBreakPointsRequest (
@@ -311,8 +311,8 @@ class IotjsDebugSession extends DebugSession {
311
311
312
312
response . body = { breakpoints : [ ...persistingBreakpoints , ...newBreakpoints ] } ;
313
313
} catch ( error ) {
314
- this . log ( error . message ) ;
315
- this . sendErrorResponse ( response , error . message ) ;
314
+ this . log ( error ) ;
315
+ this . sendErrorResponse ( response , 0 , ( < Error > error ) . message ) ;
316
316
return ;
317
317
}
318
318
@@ -333,7 +333,7 @@ class IotjsDebugSession extends DebugSession {
333
333
334
334
this . sendResponse ( response ) ;
335
335
} )
336
- . catch ( error => this . sendErrorResponse ( response , 0 , error ) ) ;
336
+ . catch ( error => this . sendErrorResponse ( response , 0 , ( < Error > error ) . message ) ) ;
337
337
}
338
338
339
339
protected stackTraceRequest (
@@ -359,7 +359,7 @@ class IotjsDebugSession extends DebugSession {
359
359
360
360
this . sendResponse ( response ) ;
361
361
} )
362
- . catch ( error => this . sendErrorResponse ( response , 0 , error ) ) ;
362
+ . catch ( error => this . sendErrorResponse ( response , 0 , ( < Error > error ) . message ) ) ;
363
363
}
364
364
365
365
protected customRequest ( command : string , response : DebugProtocol . Response , args : any ) : void {
@@ -377,7 +377,7 @@ class IotjsDebugSession extends DebugSession {
377
377
. catch ( error => {
378
378
this . log ( error ) ;
379
379
this . _sourceSendingOptions . state = SOURCE_SENDING_STATES . NOP ;
380
- this . sendErrorResponse ( response , 0 , error , null , ErrorDestination . User ) ;
380
+ this . sendErrorResponse ( response , 0 , ( < Error > error ) . message , null , ErrorDestination . User ) ;
381
381
} ) ;
382
382
return ;
383
383
}
0 commit comments