File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ def validate(invoice_part):
57
57
elif v ['value' ] is not None and v ['conflict' ] is not None :
58
58
for d in v ['conflict' ]:
59
59
if taglist [d ]['value' ] is not None :
60
- raise ValidateException ('{0} Conflict with {1}' .format (v ['tag' ],v ['conflict' ]))
60
+ raise ValidateException ('Cannot specify both {0} and {1} at the same time ' .format (v ['tag' ],v ['conflict' ]))
61
61
elif v ['value' ] is None and v ['conflict' ] is not None and v ['required' ]:
62
62
for d in v ['conflict' ]:
63
63
if taglist [d ]['value' ] is None :
64
- raise ValidateException ('{0} or {1} must be specified ' .format (v ['tag' ],v ['conflict' ]))
64
+ raise ValidateException ('Must specify either {0} or {1} but not both at the same time ' .format (v ['tag' ],v ['conflict' ]))
65
65
66
66
return taglist
67
67
You can’t perform that action at this time.
0 commit comments