Skip to content

Commit ea88af8

Browse files
committed
Improve output on validation errors.
1 parent 8056a82 commit ea88af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PyFePA/serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def validate(invoice_part):
6161
elif v['value'] is None and v['conflict'] is not None and v['required']:
6262
for d in v['conflict']:
6363
if taglist[d]['value'] is None:
64-
raise ValidateException('Must specify either {0} or {1} but not both at the same time'.format(v['tag'],v['conflict']))
64+
raise ValidateException('Either {0} or {1} is missing. Alternatively they could both be specified, which is not allowed.'.format(v['tag'],v['conflict']))
6565

6666
return taglist
6767

0 commit comments

Comments
 (0)