fix implicit lua number to .net conversion
fix .net exceptions not halting the running script fix inconsistency with stdout and lua console printing errors, both should end in a newline now print the inner exception of a lua exception (i.e. the .net extension) if possible
This commit is contained in:
parent
eb00019c86
commit
bc79664461
Binary file not shown.
Binary file not shown.
|
@ -58,8 +58,14 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
catch (NLua.Exceptions.LuaException ex)
|
catch (NLua.Exceptions.LuaException ex)
|
||||||
{
|
{
|
||||||
Console.WriteLine(ex);
|
var exStr = ex.ToString() + '\n';
|
||||||
DefaultLogger(ex.ToString());
|
if (ex.InnerException is not null)
|
||||||
|
{
|
||||||
|
exStr += ex.InnerException.ToString() + '\n';
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.Write(exStr);
|
||||||
|
DefaultLogger(exStr);
|
||||||
exceptionCallback?.Invoke();
|
exceptionCallback?.Invoke();
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|
Loading…
Reference in New Issue