diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-01-28 11:27:16 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-01-28 11:27:16 +0000 |
| commit | f01835508614938c2cf0382b82ea62c2c4dedd16 (patch) | |
| tree | c08f29e860b3c2cc281488a2579d7d84312151cd /roundcubemail/program/include/rcube_mdb2.php | |
| parent | 7a3551691e2eb17b7fe9f000d02f53c1742e05a5 (diff) | |
- add file/line definitions to raise_error() calls
git-svn-id: https://svn.roundcube.net/trunk@3231 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_mdb2.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_mdb2.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.php b/roundcubemail/program/include/rcube_mdb2.php index 137ffb273..e8dd7e0a7 100644 --- a/roundcubemail/program/include/rcube_mdb2.php +++ b/roundcubemail/program/include/rcube_mdb2.php @@ -266,8 +266,9 @@ class rcube_mdb2 $this->db_error = TRUE; $this->db_error_msg = $q->userinfo; - raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, - 'message' => $this->db_error_msg), TRUE, TRUE); + raise_error(array('code' => 500, 'type' => 'db', + 'line' => __LINE__, 'file' => __FILE__, + 'message' => $this->db_error_msg), TRUE, TRUE); } else { @@ -626,7 +627,8 @@ class rcube_mdb2 { $this->db_error = TRUE; $this->db_error_msg = $res->getMessage(); - raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, + raise_error(array('code' => 500, 'type' => 'db', + 'line' => __LINE__, 'file' => __FILE__, 'message' => $res->getMessage() . " Query: " . substr(preg_replace('/[\r\n]+\s*/', ' ', $res->userinfo), 0, 512)), TRUE, FALSE); |
