mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ArchiveTools] Error tweaking for TGZ
This commit is contained in:
@@ -627,7 +627,8 @@ namespace SabreTools.Helper
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
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
|
// If it doesn't exist, create the output file and then write
|
||||||
@@ -638,14 +639,14 @@ namespace SabreTools.Helper
|
|||||||
inputstream.CopyTo(output);
|
inputstream.CopyTo(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Name the original input file correctly again
|
// Name the original input file correctly again, if possible
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
File.Move(tempname, input);
|
File.Move(tempname, input);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
logger.Error(ex.ToString());
|
logger.Warning(ex.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now that it's renamed, inject the header info
|
// Now that it's renamed, inject the header info
|
||||||
@@ -699,7 +700,7 @@ namespace SabreTools.Helper
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
logger.Error(ex.ToString());
|
logger.Warning(ex.ToString());
|
||||||
File.Delete(outfile);
|
File.Delete(outfile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user