From 1ca1748ac28e2274ff6881848fe4ac03afc4d80f Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 22 Jun 2012 11:42:22 +0000 Subject: [PATCH] Improve Exception --- include/class_database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_database.php b/include/class_database.php index 107321bb0..c335a9274 100644 --- a/include/class_database.php +++ b/include/class_database.php @@ -147,8 +147,8 @@ class Database } if ( ! $this->ret ) { - $str_error=pg_last_error($this->db); - throw new Exception (" SQL ERROR $p_string ".$str_error,1); + $str_error=pg_last_error($this->db). pg_result_error($this->db); + throw new Exception (" SQL ERROR $p_string ".$str_error,1 ); } }