C#: Narrow Exception to JsonException

This commit is contained in:
Michael B. Gale
2025-03-14 14:05:27 +00:00
parent 95605935fa
commit b6c74fe306

View File

@@ -114,7 +114,7 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
}
}
}
catch (Exception ex)
catch (JsonException ex)
{
logger.LogError($"Unable to parse '{EnvironmentVariableNames.ProxyURLs}': {ex.Message}");
}