Make postgres database error slightly more helpful

This commit is contained in:
Erik Johnston 2015-04-29 12:12:18 +01:00
parent 4932a7e2d9
commit cd0864121b
2 changed files with 17 additions and 13 deletions

View file

@ -28,7 +28,8 @@ class PostgresEngine(object):
rows = txn.fetchall()
if rows and rows[0][0] != "UTF8":
raise IncorrectDatabaseSetup(
"Database has incorrect encoding: '%s' instead of 'UTF8'"
"Database has incorrect encoding: '%s' instead of 'UTF8'\n"
"See docs/postgres.rst for more information."
% (rows[0][0],)
)