Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed May 29, 2024
1 parent fea6973 commit 2bf7a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/engines/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ def check_new_database(self, txn: Cursor) -> None:

if errors:
raise IncorrectDatabaseSetup(
"Database has incorrect ctype of %r. Should be 'C'\n"
"Database is incorrectly configured:\n\n%s\n\n"
"See docs/postgres.md for more information. You can override this check by"
"setting 'allow_unsafe_locale' to true in the database config.",
ctype,
"\n".join(errors),
)

def convert_param_style(self, sql: str) -> str:
Expand Down

0 comments on commit 2bf7a89

Please sign in to comment.