Commit 58211794 authored by Andreas Tille's avatar Andreas Tille

More verbose error messages

parent 6a862f20
......@@ -548,7 +548,7 @@ class blends_prospective_gatherer(gatherer):
try:
cur.executemany(bibquery, bibrefs)
except ProgrammingError:
print "Error while inserting references"
print "Error while inserting references:", bibrefs
raise
except IntegrityError, err:
print "IntegrityError: %s\n%s" % (str(err), bibrefs)
......@@ -568,7 +568,7 @@ class blends_prospective_gatherer(gatherer):
try:
cur.executemany(uquery, umetadata)
except ProgrammingError:
print "Error while inserting references"
print "Error while inserting upstream metadata", umetadata
raise
cur.execute("DEALLOCATE upstream_insert")
......@@ -582,7 +582,7 @@ class blends_prospective_gatherer(gatherer):
try:
cur.executemany(equery, edamdata)
except ProgrammingError:
print "Error while inserting references"
print "Error while inserting edamdata:", edamdata
raise
except KeyError, err:
print "Wrong key while inserting references (%s)" % (str(err))
......
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