Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve has_many "missing field" error message (#480)
This patch adds more context to an error that can occur when the target field of a has_many association does not exist on the struct. Before this patch, an error message would look like this: ``` could not set '467cc7fa-d2f9-4ea7-b943-4dee7f4bddf9' in '<invalid reflect.Value>' ``` After the patch, it looks like this: ``` could not set field 'RequestID' in table 'selfservice_login_request_methods' to value '110540dc-e8cc-4587-b391-3114c75c012b' for 'has_many' relation ``` Signed-off-by: aeneasr <[email protected]>
- Loading branch information