Deprecate string format log shorthand.
This commit is contained in:
committed by
abcdefg30
parent
e251126dd4
commit
1c2ce0dcc0
@@ -219,10 +219,10 @@ namespace OpenRA.Scripting
|
||||
public void FatalError(string message)
|
||||
{
|
||||
var stacktrace = new StackTrace().ToString();
|
||||
Console.WriteLine("Fatal Lua Error: {0}", message);
|
||||
Console.WriteLine($"Fatal Lua Error: {message}");
|
||||
Console.WriteLine(stacktrace);
|
||||
|
||||
Log.Write("lua", "Fatal Lua Error: {0}", message);
|
||||
Log.Write("lua", $"Fatal Lua Error: {message}");
|
||||
Log.Write("lua", stacktrace);
|
||||
|
||||
FatalErrorOccurred = true;
|
||||
|
||||
Reference in New Issue
Block a user