Req #16151 [Opn->Csd]: Suggest error message change

From: Date: Sun, 27 Sep 2009 10:02:18 +0000
Subject: Req #16151 [Opn->Csd]: Suggest error message change
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-1742@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16151&edit=1 ID: 16151 Updated by: l.alberton@quipo.it Reported By: robby at robbyslaughter dot com Summary: Suggest error message change -Status: Open +Status: Closed Type: Feature/Change Request Package: MDB2 Operating System: Linux Package Version: 2.4.1 PHP Version: 5.1.6 -Assigned To: +Assigned To: quipo Roadmap Versions: New Comment: -Status: Open +Status: Closed -Assigned To: +Assigned To: quipo $e->getUserInfo() is what you're looking for Previous Comments: ------------------------------------------------------------------------ [2009-05-23 23:42:29] robbyslaughter On the one hand, anybody who writes code that depends on the phrasing of an error message ought to be punished... But perhaps the old standby of adding a function getExtendedMessage() to spit out extra details would be helpful. I think it's reasonable to have this also be displayed. ------------------------------------------------------------------------ [2009-05-23 19:10:49] doconnor I agree about the usability aspects of it, but this package is well past 1.0.0; so a change like this would be not something you'd do lightly (if people did if ($e->getMessage() == 'not found') {} in their code... ------------------------------------------------------------------------ [2009-04-25 16:13:49] robbyslaughter Description: ------------ The error message "MDB2 Error: not found" should suggest to the user that they should try installing the particular driver for the database that they want. This is an easy mistake to make and a simple change to the error message would help a great deal! ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16151&edit=1

« previous php.pear.bugs (#1742) next »