[fix] more helpful error message if there are errors with the formatting config
This commit is contained in:
@@ -271,7 +271,7 @@ class AddressFormatter(object):
|
|||||||
elif 'first' in v:
|
elif 'first' in v:
|
||||||
val = (self.FIRST, None)
|
val = (self.FIRST, None)
|
||||||
else:
|
else:
|
||||||
raise ValueError('Insertions must contain one of {first, before, after, last}')
|
raise ValueError('Insertions must contain one of {{first, before, after, last}}. Value was: {}'.format(v))
|
||||||
|
|
||||||
prob = v['probability']
|
prob = v['probability']
|
||||||
values.append(val)
|
values.append(val)
|
||||||
|
|||||||
Reference in New Issue
Block a user