From 6eb21f74c8cb7aa93bc38c60f8e37b901f5daf2e Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 4 Oct 2008 08:33:14 -0700 Subject: Error handling in the lua2c.cmd batch file. --- lua2c.cmd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua2c.cmd b/lua2c.cmd index df71c76..4389e66 100644 --- a/lua2c.cmd +++ b/lua2c.cmd @@ -1,4 +1,9 @@ @echo off c:\work\luac %1 -o %~n1.clua +if errorlevel 1 goto failed c:\work\bin2c %~n1.clua %~n1.c %~n1 +if errorlevel 1 goto failed del %~n1.clua +exit 0 +failed: +exit 255 -- cgit v1.2.3