aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-05-17 10:53:15 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-05-17 10:53:15 +0000
commit988998d4136562c171a94b82982277966c38ea41 (patch)
tree407389c566a89b029452b8549074bc675052e556
parenta282d4ee540e89cde99e1aaa0eff91080a6819c3 (diff)
downloadusdx-988998d4136562c171a94b82982277966c38ea41.tar.gz
usdx-988998d4136562c171a94b82982277966c38ea41.tar.xz
usdx-988998d4136562c171a94b82982277966c38ea41.zip
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
-rw-r--r--Lua/src/lua/ULuaCore.pas3
1 files changed, 3 insertions, 0 deletions
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;