Skip to content

Commit

Permalink
Fixed extensions/locations confusion in error extraction (#6117)
Browse files Browse the repository at this point in the history
  • Loading branch information
martindisch authored May 4, 2023
1 parent ed2fddd commit dfb857d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ private static void ExtractError(
if (error.TryGetProperty("locations", out var locations) &&
locations.ValueKind is JsonValueKind.Array)
{
foreach (var location in extensions.EnumerateArray())
foreach (var location in locations.EnumerateArray())
{
if (location.TryGetProperty("line", out var lineValue) &&
location.TryGetProperty("column", out var columnValue) &&
Expand Down

0 comments on commit dfb857d

Please sign in to comment.