[fix] more helpful error message if there are errors with the formatting config

This commit is contained in:
Al
2016-07-27 19:14:30 -04:00
parent 21033537a2
commit 88353b75e0

View File

@@ -271,7 +271,7 @@ class AddressFormatter(object):
elif 'first' in v:
val = (self.FIRST, None)
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']
values.append(val)