Consolidate some of the throws

This commit is contained in:
Matt Nadareski
2020-09-15 17:09:35 -07:00
parent 74a0c47102
commit 044d70da6e
16 changed files with 58 additions and 175 deletions

View File

@@ -99,10 +99,7 @@ namespace SabreTools.Library.Filtering
}
catch (Exception ex)
{
Globals.Logger.Warning($"Exception found while parsing '{ini}': {ex}");
if (Globals.ThrowOnError)
throw ex;
Globals.Logger.Warning(ex, $"Exception found while parsing '{ini}'");
return false;
}