Skip to content

Commit

Permalink
Prevent launch error display stack twice
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Oct 29, 2024
1 parent bccccf9 commit cfd849d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HLAdapter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class HLAdapter extends DebugSession {
if( port == null ) port = debugPort;
if( args.allowEval != null ) allowEvalGetters = args.allowEval;

function onError(e) {
function onError(e : String) {
errorMessageAndResponse(cast response, e + "\n" + haxe.CallStack.toString(haxe.CallStack.exceptionStack()));
sendEvent(new TerminatedEvent());
}
Expand All @@ -143,7 +143,7 @@ class HLAdapter extends DebugSession {
});
}
} catch( e : Dynamic ) {
onError(e + "\n" + haxe.CallStack.toString(haxe.CallStack.exceptionStack()));
onError(e);
}
}

Expand Down

0 comments on commit cfd849d

Please sign in to comment.