浏览代码

handle nekoc compilation error.

Nicolas Cannasse 19 年之前
父节点
当前提交
64f356f4e9
共有 1 个文件被更改,包括 2 次插入1 次删除
  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