Due to a server problem one of our production sites was unable to connect to the DB.
While it was unable to connect the site was outputting the error:
An exception has been thrown during the rendering of a template ("Craft can't connect to the database with the credentials in craft/config/db.php.") in "_layout" at line 10.
I'm a little concerned that a production site is outputting this kind of information, is there a way to stop these errors being output?
(The site is currently running Craft Pro 2.1.2561 with dev mode disabled.)
Thanks.