From a4f56c932de0d38fc4fce44126a545e9618a4899 Mon Sep 17 00:00:00 2001 From: Ling Zhou Date: Mon, 26 Feb 2024 19:02:12 -0800 Subject: [PATCH] Fix test failure under Linux environment. --- src/Sarif.Driver/Sdk/MultithreadedAnalyzeCommandBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sarif.Driver/Sdk/MultithreadedAnalyzeCommandBase.cs b/src/Sarif.Driver/Sdk/MultithreadedAnalyzeCommandBase.cs index 6c175ae3d..7334f53a8 100644 --- a/src/Sarif.Driver/Sdk/MultithreadedAnalyzeCommandBase.cs +++ b/src/Sarif.Driver/Sdk/MultithreadedAnalyzeCommandBase.cs @@ -671,7 +671,7 @@ private async Task 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);