Explorar o código

uncaught exceptions should trigger error code on haxe client

ncannasse %!s(int64=6) %!d(string=hai) anos
pai
achega
43ed6c9b4a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();