cvs: pear /Tree/Dynamic DBnested.php

From: Date: Thu, 22 Aug 2002 23:36:59 +0000
Subject: cvs: pear /Tree/Dynamic DBnested.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5887@lists.php.net to get a copy of this message
cain Thu Aug 22 19:36:59 2002 EDT Modified files: /pear/Tree/Dynamic DBnested.php Log: - return proper PEAR-error Index: pear/Tree/Dynamic/DBnested.php diff -u pear/Tree/Dynamic/DBnested.php:1.8 pear/Tree/Dynamic/DBnested.php:1.9 --- pear/Tree/Dynamic/DBnested.php:1.8 Fri Jul 26 06:35:15 2002 +++ pear/Tree/Dynamic/DBnested.php Thu Aug 22 19:36:59 2002 @@ -16,7 +16,7 @@ // | Authors: | // +----------------------------------------------------------------------+ // -// $Id: DBnested.php,v 1.8 2002/07/26 10:35:15 cain Exp $ +// $Id: DBnested.php,v 1.9 2002/08/22 23:36:59 cain Exp $ require_once('Tree/Common.php'); require_once('Tree/Error.php'); @@ -364,9 +364,11 @@ if( PEAR::isError($ret) ) $errors[] = $ret; } -# FIXXME return a Tree_Error, not an array !!!!! +# FIXXME the error in a nicer way, or even better let the throwError method do it!!! if( sizeof($errors) ) - return $errors; + { + return $this->_throwError(serialize($errors),__LINE__); + } return true; }

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