diff options
-rw-r--r-- | it_dbi.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class index 3878759..df79f0e 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -359,7 +359,7 @@ function _fatal($text) $text = get_class($this).'::'.$text; if ($this->_link && ($errstr = mysql_error($this->_link))) - $text = "\"$errstr\" in $text"; + $text = "\"$errstr\" in $text [errno " . mysql_errno($this->_link) . "]"; if ($this->_link && ($res = @mysql_fetch_row(mysql_query('select database()', $this->_link)))) # dont create extra errs $text .= ", DB: " . $res[0]; |