Lua - savestate.registersave/load - show exception message on error

This commit is contained in:
adelikat 2012-03-28 00:13:25 +00:00
parent 8bc8ec0e5b
commit 397f289493
1 changed files with 6 additions and 4 deletions
BizHawk.MultiClient

View File

@ -33,9 +33,10 @@ namespace BizHawk.MultiClient
{
savestate_registersavefunc.Call();
}
catch
catch (SystemException e)
{
Global.MainForm.LuaConsole1.WriteToOutputWindow("error running function attached by lua function savestate.registersave");
Global.MainForm.LuaConsole1.WriteToOutputWindow("error running function attached by lua function savestate.registersave" +
"\nError message: " + e.Message);
}
}
}
@ -48,9 +49,10 @@ namespace BizHawk.MultiClient
{
savestate_registerloadfunc.Call();
}
catch
catch (SystemException e)
{
Global.MainForm.LuaConsole1.WriteToOutputWindow("error running function attached by lua function savestate.registerload");
Global.MainForm.LuaConsole1.WriteToOutputWindow("error running function attached by lua function savestate.registerload" +
"\nError message: " + e.Message);
}
}
}