Browse Source

uncaught exceptions should trigger error code on haxe client

ncannasse 6 years ago
parent
commit
43ed6c9b4a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/compiler/server.ml

+ 1 - 1
src/compiler/server.ml

@@ -507,7 +507,7 @@ let rec wait_loop process_params verbose accept =
 		| e ->
 			let estr = Printexc.to_string e in
 			ServerMessage.uncaught_error estr;
-			(try write estr with _ -> ());
+			(try write ("\x02\n" ^ estr); with _ -> ());
 			if is_debug_run() then print_endline (estr ^ "\n" ^ Printexc.get_backtrace());
 			if e = Out_of_memory then begin
 				close();