cvs: pear /DB_DataObject DataObject.php

From: Date: Fri, 08 Apr 2005 01:08:48 +0000
Subject: cvs: pear /DB_DataObject DataObject.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-31033@lists.php.net to get a copy of this message
alan_k Thu Apr 7 21:08:48 2005 EDT Modified files: /pear/DB_DataObject DataObject.php Log: remove the usefull error message, and only make it availabe via debugging http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject.php?r1=1.347&r2=1.348&ty=u Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.347 pear/DB_DataObject/DataObject.php:1.348 --- pear/DB_DataObject/DataObject.php:1.347 Thu Apr 7 09:10:09 2005 +++ pear/DB_DataObject/DataObject.php Thu Apr 7 21:08:45 2005 @@ -15,7 +15,7 @@ * @author Alan Knowles <alan@akbkhome.com> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: DataObject.php,v 1.347 2005/04/07 13:10:09 alan_k Exp $ + * @version CVS: $Id: DataObject.php,v 1.348 2005/04/08 01:08:45 alan_k Exp $ * @link http://pear.php.net/package/DB_DataObject */ @@ -2120,8 +2120,9 @@ $this->debug(serialize($_DB_DATAOBJECT['CONNECTIONS']), "CONNECT",5); } if (PEAR::isError($_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5])) { + $this->debug($_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5]->toString(), "CONNECT FAILED",5); return $this->raiseError( - $_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5]->toString(), + "Connect failed, turn on debugging to 5 see why", $_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5]->code, PEAR_ERROR_DIE );

« previous php.pear.cvs (#31033) next »