Explorar el Código

don't generate when has_error !

Nicolas Cannasse hace 19 años
padre
commit
d4f2faf48e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      main.ml

+ 1 - 1
main.ml

@@ -279,6 +279,7 @@ try
 		let ctx = Typer.context type_error warn in
 		List.iter (fun cpath -> ignore(Typer.load ctx cpath Ast.null_pos)) (List.rev !classes);
 		Typer.finalize ctx;
+		if !has_error then do_exit();
 		let types = Typer.types ctx (!main_class) (!excludes) in
 		(match !target with
 		| No -> ()
@@ -298,7 +299,6 @@ try
 			if !Plugin.verbose then print_endline ("Generating xml : " ^ file);
 			Genxml.generate file ctx types);
 	end;
-	if !has_error then do_exit();
 	(!next)();
 with	
 	| Lexer.Error (m,p) -> report (Lexer.error_msg m) p