Make logging more intuitive

This commit is contained in:
Matt Nadareski
2020-09-15 14:38:37 -07:00
parent f506915a04
commit fc580c7d35
29 changed files with 88 additions and 64 deletions

View File

@@ -90,7 +90,7 @@ namespace SabreTools.Library.FileTypes
}
catch (Exception ex)
{
Globals.Logger.Error(ex.ToString());
Globals.Logger.Error(ex);
if (Globals.ThrowOnError)
throw ex;
@@ -180,7 +180,7 @@ namespace SabreTools.Library.FileTypes
}
catch (Exception ex)
{
Globals.Logger.Error(ex.ToString());
Globals.Logger.Error(ex);
if (Globals.ThrowOnError)
throw ex;
@@ -252,7 +252,7 @@ namespace SabreTools.Library.FileTypes
}
catch (Exception ex)
{
Globals.Logger.Error(ex.ToString());
Globals.Logger.Error(ex);
if (Globals.ThrowOnError)
throw ex;