be a bit more discriptive about db error
authorTony Mack <tmack@cs.princeton.edu>
Wed, 3 Mar 2010 22:10:24 +0000 (22:10 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 3 Mar 2010 22:10:24 +0000 (22:10 +0000)
sfa/util/PostgreSQL.py

index 5b34901..34334de 100644 (file)
@@ -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