diff --git a/BurnOutSharp/Scanner.cs b/BurnOutSharp/Scanner.cs index 1b7427fd..7cc9af88 100644 --- a/BurnOutSharp/Scanner.cs +++ b/BurnOutSharp/Scanner.cs @@ -264,7 +264,7 @@ namespace BurnOutSharp if (IncludeDebug) Console.WriteLine(ex); var protections = new ConcurrentDictionary>(); - 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