aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/sql.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2009-05-19 20:28:32 +0000
committerRob Austein <sra@hactrn.net>2009-05-19 20:28:32 +0000
commite94fb91c851e0dcd5ec9a0ff8799bb20d324b85d (patch)
treef4cee7d81d70167bdb73bbe48ec7df5bdb6746e6 /rpkid/rpki/sql.py
parent9a7e24ee54b84665edf3f23e87f864bfcc88d1dd (diff)
Show offending values when raising DBConsistancyError
svn path=/rpkid/rpki/sql.py; revision=2439
Diffstat (limited to 'rpkid/rpki/sql.py')
-rw-r--r--rpkid/rpki/sql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpkid/rpki/sql.py b/rpkid/rpki/sql.py
index 25c2c21e..b161451e 100644
--- a/rpkid/rpki/sql.py
+++ b/rpkid/rpki/sql.py
@@ -175,8 +175,8 @@ class sql_persistent(object):
return results[0]
else:
raise rpki.exceptions.DBConsistancyError, \
- "Database contained multiple matches for %s where %s" % \
- (cls.__name__, where % tuple(repr(a) for a in args))
+ "Database contained multiple matches for %s where %s: %r" % \
+ (cls.__name__, where % tuple(repr(a) for a in args), results)
@classmethod
def sql_fetch_all(cls, gctx):