Refactor error/exception/message handling
This adds: - LuaCsSetup.ExceptionHandler so we can decide how we want to handle exceptions for unit tests - LuaCsSetup.MessageHandler so we can redirect logs to the XUnit output helper
This commit is contained in:
@@ -3270,7 +3270,7 @@ namespace Barotrauma
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
GameMain.LuaCs.HandleException(ex);
|
||||
GameMain.LuaCs.HandleException(ex, LuaCsMessageOrigin.LuaMod);
|
||||
}
|
||||
}));
|
||||
commands.Add(new Command("cl_cs", "cs_cl: runs a string on the client", (string[] args) =>
|
||||
|
||||
Reference in New Issue
Block a user