Skip to content

Commit c03fe70

Browse files
authored
Merge pull request github#12086 from tamasvajk/feature/fix-exception-handling-archive
C#: Change handled exception in `TrapWriter.ArchiveContents`
2 parents 03385ac + f90c534 commit c03fe70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/extractor/Semmle.Extraction/TrapWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private void ArchiveContents(PathTransformer.ITransformedPath transformedPath, s
223223
{
224224
FileUtils.MoveOrReplace(tmpSrcFile, dest);
225225
}
226-
catch (IOException ex)
226+
catch (Exception ex)
227227
{
228228
// If this happened, it was probably because the same file was compiled multiple times.
229229
// In any case, this is not a fatal error.

0 commit comments

Comments
 (0)