Exit PTM after Error

This commit is contained in:
JackTerok 2019-03-09 12:00:35 +01:00
parent 484310d95a
commit 11448a6148
1 changed files with 3 additions and 0 deletions

View File

@ -736,6 +736,9 @@ namespace Core.Main
catch (System.NullReferenceException)
{
this.Log.DoLogError("PTM failed to read the Config File. That means something in the File is either missing or incorrect. If this happend after an update please take a look at the release notes at: https://github.com/PTMagicians/PTMagic/releases");
Console.WriteLine("Press enter to close the Application...");
Console.ReadLine();
Environment.Exit(0);
}
}