mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ArchiveTools] Make sure that the archive is written back if there's an error
This commit is contained in:
@@ -41,6 +41,7 @@ namespace SabreTools.Helper
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex);
|
||||
outarchive?.SaveTo(archiveFileName, new CompressionInfo { Type = CompressionType.Deflate });
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -76,6 +77,7 @@ namespace SabreTools.Helper
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex);
|
||||
outarchive?.SaveTo(archiveFileName, new CompressionInfo { Type = CompressionType.Deflate });
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user