You can update the rsobj.php file and the queryobj.php file to write the error to a file.
Look at the execute method and there will be a line that references the ->Debug property. When debug is turned on it will write the error to the page, you could update that to write it to a file instead.
This is something we could help with in a premier support ticket.