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
commit8674db94117611ef4790c1d2859fd144c12dd7d1 (patch)
tree74e490c3a2d4ca6afc659fd9a071309b2c7a8cc4 /plugins/mod_storage_sql.lua
parentcbf14003e96012cf10c734f7d7442e416bf1d125 (diff)
parentd2b8f935c6abdab0c44375ffe110e32dedbe0b26 (diff)
downloadprosody-8674db94117611ef4790c1d2859fd144c12dd7d1.tar.gz
prosody-8674db94117611ef4790c1d2859fd144c12dd7d1.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