Browse Source

handle nekoc compilation error.

Nicolas Cannasse 19 years ago
parent
commit
64f356f4e9
1 changed files with 2 additions and 1 deletions
  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