mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-09 02:16:46 +00:00
Include exception in dictionary during debug
This commit is contained in:
@@ -264,7 +264,7 @@ namespace BurnOutSharp
|
||||
if (IncludeDebug) Console.WriteLine(ex);
|
||||
|
||||
var protections = new ConcurrentDictionary<string, ConcurrentQueue<string>>();
|
||||
Utilities.AppendToDictionary(protections, file, "[Exception opening file, please try again]");
|
||||
Utilities.AppendToDictionary(protections, file, IncludeDebug ? ex.ToString() : "[Exception opening file, please try again]");
|
||||
Utilities.ClearEmptyKeys(protections);
|
||||
return protections;
|
||||
}
|
||||
@@ -454,7 +454,7 @@ namespace BurnOutSharp
|
||||
{
|
||||
if (IncludeDebug) Console.WriteLine(ex);
|
||||
|
||||
Utilities.AppendToDictionary(protections, fileName, "[Exception opening file, please try again]");
|
||||
Utilities.AppendToDictionary(protections, fileName, IncludeDebug ? ex.ToString() : "[Exception opening file, please try again]");
|
||||
}
|
||||
|
||||
// Clear out any empty keys
|
||||
|
||||
Reference in New Issue
Block a user