Improve the error message when passing a wrong value for a property

The current error looks like

ValueError: received an instance of <class 'str'>, but <class 'list'> expected

the proposed change is to add the name of the property at the end, since otherwise it is very cumbersome to try to guess which one is causing the error when having many of them. The error message looks like this:

ValueError: received an instance of <class 'str'>, but <class 'list'> expected for property RelationOutputCollection

where RelationOutputCollection is the name of the property.

Merge request reports

Loading