diff --git a/changelog.d/19869.bugfix b/changelog.d/19869.bugfix new file mode 100644 index 0000000000..2772db850f --- /dev/null +++ b/changelog.d/19869.bugfix @@ -0,0 +1 @@ +Make simple_select_one_onecol_txn() more helpful by naming the table of the select - as all other query wrapper functions already did. diff --git a/synapse/storage/database.py b/synapse/storage/database.py index 39c0631d50..023014276b 100644 --- a/synapse/storage/database.py +++ b/synapse/storage/database.py @@ -1879,7 +1879,7 @@ class DatabasePool: if allow_none: return None else: - raise StoreError(404, "No row found") + raise StoreError(404, f"No row found ({table})") @staticmethod def simple_select_onecol_txn(