mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 07:49:27 +00:00
Display call trace on exceptions reporting
This commit is contained in:
parent
addd9f55e8
commit
fba6c796a8
@ -560,7 +560,12 @@ class DBLibrary {
|
||||
|
||||
//PDO informations
|
||||
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());
|
||||
}
|
||||
}
|
||||
@ -576,6 +581,10 @@ class DBLibrary {
|
||||
|
||||
//PDO informations
|
||||
if($this->verbose){
|
||||
|
||||
echo "\n\n Call trace:";
|
||||
echo $e->getTraceAsString();
|
||||
|
||||
echo "\n PDO last error:";
|
||||
print_r($this->db->errorInfo);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user