File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -756,6 +756,9 @@ class RdbgAdapterDescriptorFactory implements DebugAdapterDescriptorFactory {
756756 debugProcess . stderr . on ( 'data' , ( chunk ) => {
757757 const msg : string = chunk . toString ( ) ;
758758 stderr += msg ;
759+ if ( stderr . includes ( 'Error' ) ) {
760+ reject ( new Error ( stderr ) ) ;
761+ }
759762 if ( stderr . includes ( 'DEBUGGER: wait for debugger connection...' ) ) {
760763 connectionReady = true ;
761764 }
@@ -795,6 +798,9 @@ class RdbgAdapterDescriptorFactory implements DebugAdapterDescriptorFactory {
795798 debugProcess . stderr . on ( 'data' , ( chunk ) => {
796799 const msg : string = chunk . toString ( ) ;
797800 stderr += msg ;
801+ if ( stderr . includes ( 'Error' ) ) {
802+ reject ( new Error ( stderr ) ) ;
803+ }
798804 if ( stderr . includes ( 'DEBUGGER: wait for debugger connection...' ) ) {
799805 connectionReady = true ;
800806 }
You can’t perform that action at this time.
0 commit comments