From 7802f477237473552bafc75253bcdead70e62c29 Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Thu, 4 Jul 2013 18:45:32 +0000 Subject: also report connection error in error_log, not only in sqllog --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_dbi.class') 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']}\""); -- cgit v1.2.3