Skip to content

Commit 3496018

Browse files
committed
If exceptions arent handled they are rethrown.
1 parent 9e21b44 commit 3496018

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Zip/FastZip.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,8 @@ void ExtractFileEntry(ZipEntry entry, string targetName)
570570
continueRunning_ = events_.OnFileFailure(targetName, ex);
571571
}
572572
else {
573-
continueRunning_ = false;
573+
continueRunning_ = false;
574+
throw;
574575
}
575576
}
576577
}
@@ -593,7 +594,7 @@ void ExtractEntry(ZipEntry entry)
593594
doExtraction = !((targetName == null) || (targetName.Length == 0));
594595
}
595596

596-
// TODO: Fire delegate were compression method not supported, or name is invalid?
597+
// TODO: Fire delegate/throw exception were compression method not supported, or name is invalid?
597598

598599
string dirName = null;
599600

@@ -623,6 +624,7 @@ void ExtractEntry(ZipEntry entry)
623624
}
624625
else {
625626
continueRunning_ = false;
627+
throw;
626628
}
627629
}
628630
}

0 commit comments

Comments
 (0)