From b3e7ffd5d4a9691311899b9a2261efe97ee52c30 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 30 Jun 2010 14:58:06 +0000 Subject: [PATCH] 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 --- .../ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py b/product/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py index a3bae71ef7..1cafb8c696 100644 --- a/product/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py +++ b/product/ERP5/Document/SQLNonContinuousIncreasingIdGenerator.py @@ -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: -- 2.30.9