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());
|
||||
}
|
||||
}
|
||||
@ -573,9 +578,13 @@ class DBLibrary {
|
||||
private function echoPDOException(PDOException $e){
|
||||
$message = '<b>Exception in '.$e->getFile().' on line '.$e->getLine().' </b>: '.$e->getMessage();
|
||||
echo $message;
|
||||
|
||||
|
||||
//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