Merge pull request #88 from JackTerok/develop

Exit PTM after Config Error Message
This commit is contained in:
HojouFotytu 2019-03-10 01:10:43 +09:00 committed by GitHub
commit 77b6801e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}
}