// removed useless Tools::displayError()

This commit is contained in:
mMarinetti
2011-12-21 19:58:01 +00:00
parent 617e4f38bc
commit 33d3e94ed8
+2 -2
View File
@@ -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().'<br /><br /><pre>'.$sql.'</pre>'));
throw new PrestashopDatabaseException(Tools::displayError($this->getMsgError()));
throw new PrestashopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
throw new PrestashopDatabaseException($this->getMsgError());
}
}