MyBB Community Forums

Full Version: Better Database Errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The database for my site is currently down. I go to MyBB and I get this:

Quote:Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /full/path/to/my/forum/inc/db_mysql.php on line 313
MySQL error:
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /full/path/to/my/forum/inc/db_mysql.php on line 314


Query:

Gotta say, I'm not really happy to see the full server path there for all to see because of the database being down. MyBB should die(); with a vague "Could not connect to the database" or something. From the look of this error, it seems that MyBB was simply never written to deal with the database being completely unavailable.

Someone please fix that in the next version Smile
Oh yeah errors look a lot better in the next version Smile
Very nice to hear! Smile