Skip to content

Commit c60a15e

Browse files
committed
Just restructure the error.
1 parent 903ad69 commit c60a15e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyswagger/primitives/_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def apply_with(self, obj, val, ctx):
4646

4747
not_found = set(obj.required) - set(six.iterkeys(self))
4848
if len(not_found):
49-
raise ValueError('requirement not met: {0}'.format(not_found))
49+
raise ValueError('Model missing required key(s): {0}'.format(', '.join(not_found)))
5050

5151
# remove assigned properties to avoid duplicated
5252
# primitive creation

0 commit comments

Comments
 (0)