File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -430,11 +430,20 @@ export class RESTDebugPanel {
430
430
} ) ;
431
431
432
432
// Send the request
433
- fetch ( encodeURI ( `${ serverInfo } ${ message . webApp } ${ path } ?${ urlParams . toString ( ) } ` ) , {
433
+ fetch ( ` ${ encodeURI ( `${ serverInfo } ${ message . webApp } ${ path } ` ) } ?${ urlParams . toString ( ) } `, {
434
434
method : message . method ,
435
435
agent,
436
436
body : hasBody ? message . bodyContent : undefined ,
437
437
headers,
438
+ } ) . catch ( ( error ) => {
439
+ outputChannel . appendLine (
440
+ typeof error == "string" ? error : error instanceof Error ? error . message : JSON . stringify ( error )
441
+ ) ;
442
+ vscode . window . showErrorMessage (
443
+ "Failed to send debuggee REST request. Check 'ObjectScript' Output channel for details." ,
444
+ "Dismiss"
445
+ ) ;
446
+ vscode . debug . stopDebugging ( vscode . debug . activeDebugSession ) ;
438
447
} ) ;
439
448
440
449
// Wait 500ms to allow the server to associate this request with the CSDPDEBUG id
You can’t perform that action at this time.
0 commit comments