Commit 6acac1d5 authored by Jérome Perrin's avatar Jérome Perrin

Raise constraint_definition text along with ConstraintNotFound


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10270 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ab2b8cbc
......@@ -939,7 +939,7 @@ def createConstraintList(property_holder, constraint_definition):
except AttributeError:
LOG("ERP5Type", PROBLEM, "Can not find Constraint: %s" % \
constraint_definition['type'])
raise ConstraintNotFound
raise ConstraintNotFound(repr(constraint_definition))
consistency_instance = consistency_class(**constraint_definition)
property_holder.constraints += [consistency_instance]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment