diff options
author | Christian Weber | 2013-07-04 18:45:32 +0000 |
---|---|---|
committer | Christian Weber | 2013-07-04 18:45:32 +0000 |
commit | 7802f477237473552bafc75253bcdead70e62c29 (patch) | |
tree | 3e133937830552e33e22ddd016a0a70cc19c3485 /it_dbi.class | |
parent | 8fac606e76108880247b8b7f6644be53fdee9135 (diff) | |
download | itools-7802f477237473552bafc75253bcdead70e62c29.tar.gz itools-7802f477237473552bafc75253bcdead70e62c29.tar.bz2 itools-7802f477237473552bafc75253bcdead70e62c29.zip |
also report connection error in error_log, not only in sqllog
Diffstat (limited to 'it_dbi.class')
-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 262836a..ac90848 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -220,7 +220,7 @@ function _connect($p = array()) } if (!$this->_link) - $this->_fatal("_connect(): can't create DB link (mysqli_connect {$p['user']}@{$p['server']}, {$p['db']})"); + $this->_fatal("_connect(): can't create DB link (mysqli_connect {$p['user']}@{$p['server']}, {$p['db']}): " . mysqli_connect_error()); if (!(@mysqli_select_db($this->_link, $p['db']))) $this->_fatal("_connect(): can't select database \"{$p['db']}\""); |