Display call trace on exceptions reporting

This commit is contained in:
Pierre HUBERT 2018-08-20 13:34:44 +02:00
parent addd9f55e8
commit fba6c796a8

View File

@ -560,7 +560,12 @@ class DBLibrary {
//PDO informations //PDO informations
if($this->verbose){ if($this->verbose){
echo "\n PDO last error:";
echo "\n\n Call trace:";
echo $e->getTraceAsString();
echo "\n\n PDO last error:";
print_r($this->db->errorInfo()); print_r($this->db->errorInfo());
} }
} }
@ -576,6 +581,10 @@ class DBLibrary {
//PDO informations //PDO informations
if($this->verbose){ if($this->verbose){
echo "\n\n Call trace:";
echo $e->getTraceAsString();
echo "\n PDO last error:"; echo "\n PDO last error:";
print_r($this->db->errorInfo); print_r($this->db->errorInfo);
} }