mod_admin_telnet: Add server:memory() command to view details of Prosody's memory...
[prosody.git] / plugins / mod_storage_sql.lua
index f6fa94e700930cb9e87536c0b6507c548cd4001b..eed3fec900784518a8860b1d5ed79199a85e397b 100644 (file)
@@ -228,7 +228,8 @@ local function rollback(...)
        return ...;
 end
 local function commit(...)
-       if not connection:commit() then return nil, "SQL commit failed"; end
+       local success,err = connection:commit();
+       if not success then return nil, "SQL commit failed: "..tostring(err); end
        return ...;
 end