From 988998d4136562c171a94b82982277966c38ea41 Mon Sep 17 00:00:00 2001 From: whiteshark0 Date: Sun, 17 May 2009 10:53:15 +0000 Subject: better error reporting during plugin load git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1749 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Lua/src/lua/ULuaCore.pas | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lua') diff --git a/Lua/src/lua/ULuaCore.pas b/Lua/src/lua/ULuaCore.pas index 5ecc07af..87c2c88f 100644 --- a/Lua/src/lua/ULuaCore.pas +++ b/Lua/src/lua/ULuaCore.pas @@ -729,6 +729,7 @@ begin else begin sStatus := psErrorInInit; + Log.LogError(String(lua_toString(State, 1)), 'lua'); Log.LogError('error in plugin_init: ' + Filename, 'lua'); Unload; end; @@ -736,6 +737,7 @@ begin else begin sStatus := psErrorOnLoad; + Log.LogError(String(lua_toString(State, 1)), 'lua'); Log.LogError('unable to call file: ' + Filename, 'lua'); Unload; end; @@ -744,6 +746,7 @@ begin else begin sStatus := psErrorOnLoad; + Log.LogError(String(lua_toString(State, 1)), 'lua'); Log.LogError('unable to load file: ' + Filename, 'lua'); Unload; end; -- cgit v1.2.3