]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Adding some \ns between the SQL error and the query in the database exception.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 18:35:22 +0000 (18:35 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 18:35:22 +0000 (18:35 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3891 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/database.php

index 262e651ee184d6ea9199ba16507eb0ecc00740d1..ec703992d8ce9c3997a8135570394ba0eb41e904 100644 (file)
@@ -184,7 +184,7 @@ function execute_query($query, $dblink) {
        }
 
        if (mysql_errno($dblink)) {
-               throw new DatabaseException(mysql_error($dblink) . " QUERY: " . $query);
+               throw new DatabaseException(mysql_error($dblink) . "\n\n QUERY: " . $query);
        }
 
        return $result;