hedgewars/hwengine.pas
changeset 10621 b50e094d8b00
parent 10619 ee460883729e
child 10622 9551211455a3
--- a/hedgewars/hwengine.pas	Wed Dec 03 18:22:57 2014 +0100
+++ b/hedgewars/hwengine.pas	Wed Dec 03 18:32:37 2014 +0100
@@ -588,11 +588,14 @@
         {$ENDIF}
 
     if cTestLua then
+        begin
+        WriteLnToConsole('WARNING: Lua test terminated before the test was properly finished with EndLuaTest()!');
         {$IFDEF PAS2C}
         exit(HaltTestUnexpected);
         {$ELSE}
         halt(HaltTestUnexpected);
         {$ENDIF}
+        end;
 
     {$IFDEF PAS2C}
     exit(HaltNoError);