Skip to content

Commit

Permalink
Extend ErrorWritingProfilerReport to ArgumentException
Browse files Browse the repository at this point in the history
This was thrown from GetExtension with an invalid path on .NET Framework.
  • Loading branch information
rainersigwald committed Oct 7, 2024
1 parent aa2696b commit f55faa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Build/Logging/ProfilerLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ private void GenerateProfilerReport()
DirectoryNotFoundException or
IOException or
UnauthorizedAccessException or
SecurityException)
SecurityException or
ArgumentException)
{
Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ErrorWritingProfilerReport", ex.Message));
}
Expand Down

0 comments on commit f55faa3

Please sign in to comment.