Skip to content

Commit 7e257f6

Browse files
committed
C#: Gracefully handle non-zero exitcodes for dotnet --info.
1 parent 71ec2cb commit 7e257f6

File tree

1 file changed

+1
-1
lines changed
  • csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching

1 file changed

+1
-1
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DotNet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private void Info()
4141
var res = dotnetCliInvoker.RunCommand("--info", silent: false);
4242
if (!res)
4343
{
44-
throw new Exception($"{dotnetCliInvoker.Exec} --info failed.");
44+
logger.LogError($"{dotnetCliInvoker.Exec} --info was terminated unexpectedly.");
4545
}
4646
}
4747

0 commit comments

Comments
 (0)