Encountered errors with encounteredErrors

This commit is contained in:
Matt Nadareski
2016-04-12 23:49:51 -07:00
parent a8af9ec0c3
commit dd89930dbf

View File

@@ -142,7 +142,6 @@ namespace SabreTools
// This is where the main loop would go
if (File.Exists(_basePath))
{
_logger.Log("File found: " + _basePath);
ProcessFile(_basePath);
}
else
@@ -282,6 +281,7 @@ namespace SabreTools
IArchive archive = ArchiveFactory.Open(item);
IReader reader = archive.ExtractAllEntries();
reader.WriteAllToDirectory(_tempDir, ExtractOptions.ExtractFullPath);
encounteredErrors = false;
}
catch (InvalidOperationException)
{
@@ -290,6 +290,7 @@ namespace SabreTools
catch (Exception ex)
{
_logger.Error(ex.ToString());
encounteredErrors = true;
}
}