@@ -142,7 +142,7 @@ class IotjsDebugSession extends DebugSession {
142
142
this . sendResponse ( response ) ;
143
143
} )
144
144
. catch ( error => {
145
- this . log ( error , LOG_LEVEL . ERROR ) ;
145
+ this . log ( error . message , LOG_LEVEL . ERROR ) ;
146
146
this . sendErrorResponse ( response , error ) ;
147
147
} )
148
148
. then ( ( ) => {
@@ -229,7 +229,7 @@ class IotjsDebugSession extends DebugSession {
229
229
await this . _protocolhandler . updateBreakpoint ( jerryBreakpoint , true ) ;
230
230
return < TemporaryBreakpoint > { verified : true , line : breakpoint . line } ;
231
231
} catch ( error ) {
232
- this . log ( error , LOG_LEVEL . ERROR ) ;
232
+ this . log ( error . message , LOG_LEVEL . ERROR ) ;
233
233
return < TemporaryBreakpoint > { verified : false , line : breakpoint . line , message : ( < Error > error ) . message } ;
234
234
}
235
235
} ) ) ;
@@ -251,7 +251,7 @@ class IotjsDebugSession extends DebugSession {
251
251
252
252
response . body = { breakpoints : [ ...persistingBreakpoints , ...newBreakpoints ] } ;
253
253
} catch ( error ) {
254
- this . log ( error , LOG_LEVEL . ERROR ) ;
254
+ this . log ( error . message , LOG_LEVEL . ERROR ) ;
255
255
this . sendErrorResponse ( response , < Error > error ) ;
256
256
return ;
257
257
}
@@ -299,7 +299,7 @@ class IotjsDebugSession extends DebugSession {
299
299
300
300
this . sendResponse ( response ) ;
301
301
} catch ( error ) {
302
- this . log ( error ) ;
302
+ this . log ( error . message , LOG_LEVEL . ERROR ) ;
303
303
this . sendErrorResponse ( response , 0 , ( < Error > error ) . message ) ;
304
304
}
305
305
}
@@ -315,7 +315,7 @@ class IotjsDebugSession extends DebugSession {
315
315
this . sendResponse ( response ) ;
316
316
} )
317
317
. catch ( error => {
318
- this . log ( error , LOG_LEVEL . ERROR ) ;
318
+ this . log ( error . message , LOG_LEVEL . ERROR ) ;
319
319
this . _sourceSendingOptions . state = SOURCE_SENDING_STATES . NOP ;
320
320
this . sendErrorResponse ( response , < Error > error , ErrorDestination . User ) ;
321
321
} ) ;
0 commit comments