Open XAMPPRocky opened 9 months ago
Yeah I found it's very hard to understand what's goind wrong.
Just placing #[tracing::instrument(err, skip_all)]
before fn encode(&self, buf: &mut BytesMut, val: &Value)
helped tremendously understand what's going on.
I can add PR with this annotations on most major functions, what do you think? @raddevon
Edgedb's error messages can be quite unintuitive about what is needed to fix the error, what the error is, and it should include more information about the invalid query, and the errors should provide more actionable information for the user.
Some generic information that would be useful for all errors.
Examples of unituitive errors:
This error is something to do with not referencing any inner property in a link property.
This error is caused when you're missing a field OR the field list in the query doesn't match the order of the
Queryable
struct, which is incredibly user-hostile, because you're only going to realise that's the problem through trial and error.References the query instead of the code.