Skip to content

Commit

Permalink
Fix test failure under Linux environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ling Zhou committed Feb 27, 2024
1 parent 3d55dde commit a4f56c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sarif.Driver/Sdk/MultithreadedAnalyzeCommandBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ private async Task<bool> EnumerateFilesFromArtifactsProvider(TContext globalCont
{
artifactSize = artifact.SizeInBytes.Value;
}
catch (IOException e)
catch (Exception e) when (e is IOException || e is ArgumentException)
{
DriverEventSource.Log.ArtifactNotScanned(filePath, DriverEventNames.FilePathNotAllowed, 00, data2: null);
Notes.LogFileSkipped(globalContext, filePath, e.Message);
Expand Down

0 comments on commit a4f56c9

Please sign in to comment.