From: Tony Mack Date: Wed, 3 Mar 2010 22:10:24 +0000 (+0000) Subject: be a bit more discriptive about db error X-Git-Tag: sfa-0.9-11~55 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=f9763b9c1463dd15120e880c4221f9b756e340dd be a bit more discriptive about db error --- diff --git a/sfa/util/PostgreSQL.py b/sfa/util/PostgreSQL.py index 5b349016..34334de8 100644 --- a/sfa/util/PostgreSQL.py +++ b/sfa/util/PostgreSQL.py @@ -202,7 +202,7 @@ class PostgreSQL: print >> log, query print >> log, "Params:" print >> log, pformat(params) - raise SfaDBError("Please contact support") + raise SfaDBError("Please contact support: %s" % e) return cursor