edgedb-go
edgedb-go copied to clipboard
Improve error message when a optional struct field is the wrong type
The example error below should only suggest edgedb.OptionalDuration because the field is not required.
2022/06/29 13:02:06 edgedb.BinaryProtocolError: building decoder from ParameterStatus state_description: expected state.config.durprop to be edgedb.Duration or edgedb.OptionalDuration got string