add 'is db running' printed message when pg db connect fails

This commit is contained in:
sqlcoder 2009-10-13 21:52:13 +01:00
parent 843bd754f6
commit 785e3d63a2

View File

@ -111,7 +111,7 @@ class fpdb_db:
password = password,
database = database)
except:
msg = "PostgreSQL connection to database (%s) user (%s) failed." % (database, user)
msg = "PostgreSQL connection to database (%s) user (%s) failed. Are you sure the DB is running?" % (database, user)
print msg
raise FpdbError(msg)
elif backend == fpdb_db.SQLITE: