edgedb-go icon indicating copy to clipboard operation
edgedb-go copied to clipboard

Improve error message when a optional struct field is the wrong type

Open fmoor opened this issue 3 years ago • 0 comments

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

fmoor avatar Jun 29 '22 20:06 fmoor