Use debug flag for exception printing

This commit is contained in:
Matt Nadareski
2022-05-15 20:58:27 -07:00
parent 295b86fbd0
commit dfee4a8d76
20 changed files with 206 additions and 56 deletions

View File

@@ -75,8 +75,10 @@ namespace BurnOutSharp.FileType
fileContent = br.ReadBytes((int)stream.Length);
}
}
catch
catch (Exception ex)
{
if (scanner.IncludeDebug) Console.WriteLine(ex);
Utilities.AppendToDictionary(protections, file, "[Out of memory attempting to open]");
return protections;
}