Missing null check in OnChat.

Added exception handler to command runner so it wont get swallowed by terraria
This commit is contained in:
high 2011-06-30 12:41:12 -04:00
parent 527d9bb203
commit c52e8cbf5d
3 changed files with 24 additions and 7 deletions

View file

@ -79,6 +79,16 @@ namespace TShockAPI
{
Write(message, LogLevel.Error);
}
/// <summary>
/// Writes an error to the log file.
/// </summary>
/// <param name="message">The message to be written.</param>
public static void ConsoleError(String message)
{
Console.WriteLine(message);
Write(message, LogLevel.Error);
}
/// <summary>
/// Writes a warning to the log file.