diff --git a/classes/db/Db.php b/classes/db/Db.php
index 75ecacd91..5be1b2fba 100644
--- a/classes/db/Db.php
+++ b/classes/db/Db.php
@@ -546,8 +546,8 @@ abstract class DbCore
else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
{
if ($sql)
- throw new PrestashopDatabaseException(Tools::displayError($this->getMsgError().'
'.$sql.'')); - throw new PrestashopDatabaseException(Tools::displayError($this->getMsgError())); + throw new PrestashopDatabaseException($this->getMsgError().'
'.$sql.''); + throw new PrestashopDatabaseException($this->getMsgError()); } }