mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Decouple stream hashing from special file info
This commit is contained in:
@@ -62,7 +62,7 @@ namespace SabreTools.Library.DatFiles
|
||||
}
|
||||
catch (InvalidDataException ex)
|
||||
{
|
||||
Globals.Logger.Warning($"Malformed line found in '{filename}' at line {svr.LineNumber}");
|
||||
Globals.Logger.Error(ex, $"Malformed line found in '{filename}' at line {svr.LineNumber}");
|
||||
if (throwOnError) throw ex;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using SabreTools.Library.Data;
|
||||
|
||||
@@ -1867,7 +1867,7 @@ namespace SabreTools.Library.DatFiles
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Globals.Logger.Error($"Error with file '{filename}': {ex}");
|
||||
Globals.Logger.Error(ex, $"Error with file '{filename}'");
|
||||
if (throwOnError) throw ex;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user