Commit b3e7ffd5 authored by Sebastien Robin's avatar Sebastien Robin

when raising error, also give information on the id_group

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36751 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c2f8391
......@@ -98,8 +98,8 @@ class SQLNonContinuousIncreasingIdGenerator(IdGenerator):
if last_max_id_dict.get(id_group, None) is not None and \
last_max_id_dict[id_group].value > new_id:
raise ValueError, 'The last_id %s stored in zodb dictionary is ' \
'higher than the new id %s generated' % \
(last_max_id_dict[id_group].value, new_id)
'higher than the new id %s generated for id_group %s' % \
(last_max_id_dict[id_group].value, new_id, id_group)
# Check the store interval to store the data
store_interval = self.getStoreInterval()
if not store_interval:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment