From 11448a6148330378ad74e0cc06621dd46b7b0b27 Mon Sep 17 00:00:00 2001 From: JackTerok Date: Sat, 9 Mar 2019 12:00:35 +0100 Subject: [PATCH] Exit PTM after Error --- Core/Main/PTMagic.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/Main/PTMagic.cs b/Core/Main/PTMagic.cs index 26753a8..4520766 100644 --- a/Core/Main/PTMagic.cs +++ b/Core/Main/PTMagic.cs @@ -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); } }