Skip to content

Commit 898818a

Browse files
Copilotxperiandri
andcommitted
Refine OperationError path parse diagnostics
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/f7ecc729-e334-47b1-8577-9f252b9417f2 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
1 parent 429c4fb commit 898818a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/FSharp.Data.GraphQL.Client/BaseTypes.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ module internal JsonValueHelper =
413413
let pathMapper = function
414414
| JsonValue.String x -> box x
415415
| JsonValue.Integer x -> box x
416-
| _ -> failwith "Error parsing response errors. An item in the path is neither a String nor a Number."
416+
| _ -> failwith "Error parsing response errors. An item in the path is neither a String nor an Integer."
417417
path |> Array.map pathMapper
418418
| Some JsonValue.Null | None -> [||]
419419
| _ -> failwith "Error parsing response errors. Path field must be an Array."

0 commit comments

Comments
 (0)