[eluser]TheFuzzy0ne[/eluser]
On second thoughts, it will be better to extend the display_error() method in DB_driver.php. Again, you'll need to override the database() method in the Loader class, so it doesn't instantiate the normal DB_driver class, but just loads it, and instantiates you're class which extends it. More on extending database drivers can be found [url="http://codeigniter.com/wiki/Extending_Database_Drivers/"]here[/url].