Skip to content

Commit

Permalink
Fix spelling in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hth313 authored and xperiandri committed Dec 7, 2022
1 parent 32a8f05 commit 8fd8170
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/FSharp.Data.GraphQL.Client/BaseTypes.fs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ module internal JsonValueHelper =
| Some "Date" ->
match DateTime.TryParse(s, CultureInfo.InvariantCulture, DateTimeStyles.None) with
| (true, d) -> box d
| _ -> failwith "A string was received in the query response, and the schema recognizes it as a date and time sring, but the conversion failed."
| _ -> failwith "A string was received in the query response, and the schema recognizes it as a date and time string, but the conversion failed."
| Some _ ->
box s
| _ -> failwith "A string type was received in the query response item, but the matching schema field is not a string based type."
Expand All @@ -362,7 +362,7 @@ module internal JsonValueHelper =
| Some "Date" ->
match DateTime.TryParse(s, CultureInfo.InvariantCulture, DateTimeStyles.None) with
| (true, d) -> makeSomeIfNeeded d
| _ -> failwith "A string was received in the query response, and the schema recognizes it as a date and time sring, but the conversion failed."
| _ -> failwith "A string was received in the query response, and the schema recognizes it as a date and time string, but the conversion failed."
| Some _ ->
s |> makeSomeIfNeeded
| _ -> failwith "A string type was received in the query response item, but the matching schema field is not a string based type."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,4 @@
<ProjectReference Include="..\..\src\FSharp.Data.GraphQL.Client.DesignTime\FSharp.Data.GraphQL.Client.DesignTime.fsproj" />
<ProjectReference Include="..\..\src\FSharp.Data.GraphQL.Server.Middleware\FSharp.Data.GraphQL.Server.Middleware.fsproj" />
</ItemGroup>
</Project>
<ItemGroup Condition="$(OS) == Unix">
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<Import Project="..\..\netfx.props" />
<Import Project="..\..\.paket\Paket.Restore.targets" />
</Project>

0 comments on commit 8fd8170

Please sign in to comment.