Added an exception to the log (when executing a query failed).
Authored by: keess 2010-10-25
Parent: [r2277]
Child: [r2279]