summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-29 12:12:18 +0100
committerErik Johnston <erik@matrix.org>2015-04-29 12:12:25 +0100
commitcd0864121bce3e1ab41ce432670cc87c4ffd54cd (patch)
tree4356e41db9d4829c36165717145b36a9b7fd377a /synapse/storage
parentUse __all__ instead of assert to stop pyflakes from warning about unused impo... (diff)
downloadsynapse-cd0864121bce3e1ab41ce432670cc87c4ffd54cd.tar.xz
Make postgres database error slightly more helpful
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/engines/postgres.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/engines/postgres.py b/synapse/storage/engines/postgres.py
index ca858daee9..7125f66f01 100644
--- a/synapse/storage/engines/postgres.py
+++ b/synapse/storage/engines/postgres.py
@@ -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],)
             )