Merge pull request #64 from JackTerok/develop

Added Clearer Log Message
This commit is contained in:
HojouFotytu 2019-02-19 09:07:01 +09:00 committed by GitHub
commit 7c91cc84f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 38 additions and 31 deletions

View File

@ -645,6 +645,8 @@ namespace Core.Main
// Check if the program is enabled
if (this.PTMagicConfiguration.GeneralSettings.Application.IsEnabled)
{
try
{
if (this.PTMagicConfiguration.GeneralSettings.Application.TestMode) this.Log.DoLogInfo("TESTMODE ENABLED - No files will be changed!");
@ -681,7 +683,12 @@ namespace Core.Main
this.Log.DoLogInfo("No FreeCurrencyConverterApi KEY specified! You can't use non USD Currencies!");
}
}
catch (System.NullReferenceException ex)
{
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");
}
}
else
{
this.Log.DoLogWarn("PTMagic disabled, shutting down...");