aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2012-12-01 00:31:33 +0500
committerWaqas Hussain <waqas20@gmail.com>2012-12-01 00:31:33 +0500
commitf2f277328207d92db9439ad2a31125dad55cf7ca (patch)
tree74e490c3a2d4ca6afc659fd9a071309b2c7a8cc4 /plugins/mod_storage_sql.lua
parent315ee9ae46b649074ce44e9cdab14866627ee45c (diff)
parent55bd98c887050629202fc5b21a06749a743f0fc5 (diff)
downloadprosody-f2f277328207d92db9439ad2a31125dad55cf7ca.tar.gz
prosody-f2f277328207d92db9439ad2a31125dad55cf7ca.zip
Merge 0.9->trunk.
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r--plugins/mod_storage_sql.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index f6fa94e7..eed3fec9 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -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