# HG changeset patch # User Philippe Pepiot # Date 1493133016 -7200 # Node ID 14f85569eda2ae68002a245ed4139796e443e9fc # Parent 4cf9f257e0bffa41eacfb93b326173a45fd488f0 [req] clearer exception message Display what attribute trigger the NotImplementedError diff -r 4cf9f257e0bf -r 14f85569eda2 cubicweb/req.py --- a/cubicweb/req.py Fri Apr 21 10:29:44 2017 +0200 +++ b/cubicweb/req.py Tue Apr 25 17:10:16 2017 +0200 @@ -218,7 +218,8 @@ eschema = self.vreg.schema.eschema(etype) for attr, value in kwargs.items(): if isinstance(value, list) or isinstance(value, tuple): - raise NotImplementedError("List of values are not supported") + raise NotImplementedError( + '{0}: list of values are not supported'.format(attr)) if hasattr(value, 'eid'): kwargs[attr] = value.eid if attr.startswith('reverse_'):