Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.7

Bug #1918 error reporting should use toString()
Submitted: 2004-07-20 05:44 UTC
From: alan_k Assigned: quipo
Status: Closed Package: Mail_Queue
PHP Version: 4.3.7 OS: linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 43 - 31 = ?

 
 [2004-07-20 05:44 UTC] alan_k
Description: ------------ by using toString(), you get the native error reported (which is far more usefull) if (DB::isError($res)) { return new Mail_Queue_Error(MAILQUEUE_ERROR_QUERY_FAILED, $this->pearErrorMode, E_USER_ERROR, __FILE__, __LINE__, 'DB::query failed - "'.$query.'" - '.$res->toString()); }

Comments

 [2004-07-20 10:22 UTC] quipo
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.