From c44032dc17cf20ecd20d92d354ab388e500934a5 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 6 Jul 2007 14:39:46 +0000 Subject: more info on sporadic errs --- dbi.class | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbi.class b/dbi.class index 4be2802..853470b 100644 --- a/dbi.class +++ b/dbi.class @@ -107,7 +107,8 @@ function it_dbi($config, $query = null) $table = mysql_tablename($tables, $i); $classname = "$this->_classprefix$table"; - $result = mysql_list_fields($this->_db, $table, $this->_link); + if (!($result = @mysql_list_fields($this->_db, $table, $this->_link))) + $this->_fatal("it_dbi(): can't list fields \"$this->_db\": " . mysql_error($this->_link)); for ($fields=array(), $j=0; $j < mysql_num_fields($result); $j++) { -- cgit v1.2.3