[ArchiveTools] Error tweaking for TGZ

This commit is contained in:
Matt Nadareski
2016-08-25 11:54:04 -07:00
parent 0a558ed7e1
commit 81ec40cf2f

View File

@@ -627,7 +627,8 @@ namespace SabreTools.Helper
}
catch (Exception ex)
{
logger.Error(ex.ToString());
logger.Warning(ex.ToString());
return false;
}
// If it doesn't exist, create the output file and then write
@@ -638,14 +639,14 @@ namespace SabreTools.Helper
inputstream.CopyTo(output);
}
// Name the original input file correctly again
// Name the original input file correctly again, if possible
try
{
File.Move(tempname, input);
}
catch (Exception ex)
{
logger.Error(ex.ToString());
logger.Warning(ex.ToString());
}
// Now that it's renamed, inject the header info
@@ -699,7 +700,7 @@ namespace SabreTools.Helper
}
catch (Exception ex)
{
logger.Error(ex.ToString());
logger.Warning(ex.ToString());
File.Delete(outfile);
}
}