Skip to content

EspoCRM – Open Source CRM Application

Copy message

Yurii022f9422fd6b
diff --git a/application/Espo/ORM/Executor/DefaultSqlExecutor.php b/application/Espo/ORM/Executor/DefaultSqlExecutor.php
index 6870ddd307..5b58828413 100644
--- a/application/Espo/ORM/Executor/DefaultSqlExecutor.php
+++ b/application/Espo/ORM/Executor/DefaultSqlExecutor.php
@@ -96,7 +96,7 @@ class DefaultSqlExecutor implements SqlExecutor
}
if ($isDeadlock) {
- throw new DeadlockException(previous: $e);
+ throw new DeadlockException($e->getMessage(), previous: $e);
}
/** @var PDOException $e */