Browse Source

handle nekoc compilation error.

Nicolas Cannasse 19 năm trước cách đây
mục cha
commit
64f356f4e9
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      genneko.ml

+ 2 - 1
genneko.ml

@@ -563,4 +563,5 @@ let generate file types hres =
 		Sys.remove neko_file;
 		Sys.rename (Filename.chop_extension file ^ "2.neko") neko_file;
 	end;
-	if Sys.command ("nekoc " ^ neko_file) = 0 && not (!Plugin.verbose) then Sys.remove neko_file
+	if Sys.command ("nekoc " ^ neko_file) <> 0 then failwith "Neko compilation failure";
+	Sys.remove neko_file