Error conditions of WPDB unparseable by Code
|Reported by:||dd32||Owned by:|
Description (last modified by dd32)
I'm developing something which is making use of a new WPDB class, However, i've run into a slight issue with error handling.
I'd like to have the ability to tell what the error was while attempting to connect, without having to display the verbose text error to the user.
My thought is to store a error code in the WP_Error extra section, Or maybe change the 500 error code to be the default, unless something else is supplied..
See patch for the first thought, the 500 idea only just came to mind..
Theres a 2nd issue which is outlined in that patch, the Username in the select-db message may be incorrect for custom-connected DB's not using the DB_* constants.. see patch which stores the username in a class var..
Change History (7)
- Keywords dev-feedback 2nd-opinion removed
- Milestone changed from Future Release to 2.9