Ver Fonte

print backtrace if we're in a debug run on the compilation server

Simon Krajewski há 9 anos atrás
pai
commit
e0dff7a8bd
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/main.ml

+ 1 - 0
src/main.ml

@@ -951,6 +951,7 @@ and wait_loop boot_com host port =
 			let estr = Printexc.to_string e in
 			if verbose then print_endline ("Uncaught Error : " ^ estr);
 			(try ssend sin estr with _ -> ());
+			if is_debug_run() then print_endline (Printexc.get_backtrace());
 		);
 		Unix.close sin;
 		current_stdin := None;