tell patch method name if an error happens

This commit is contained in:
Evil Factory
2022-04-28 13:42:22 -03:00
parent f815ebd1db
commit 5c34bc8db9
@@ -148,7 +148,7 @@ namespace Barotrauma
}
catch (Exception ex)
{
GameMain.LuaCs.HandleException(ex, exceptionType: LuaCsSetup.ExceptionType.Both);
GameMain.LuaCs.HandleException(ex, $"Error in {__originalMethod.Name}:", exceptionType: LuaCsSetup.ExceptionType.Both);
}
}