diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php index 6b875bc42ccd0..a7164ecdc6369 100644 --- a/lib/private/DB/Connection.php +++ b/lib/private/DB/Connection.php @@ -282,7 +282,7 @@ public function executeQuery(string $sql, array $params = [], $types = [], Query [ 'tables' => $this->tableDirtyWrites, 'reads' => $tables, - 'exception' => new \Exception(), + 'exception' => new \Exception('dirty table reads: ' . $sql), ], ); // To prevent a dirty read on a replica that is slightly out of sync, we