mod_mam: Include textual error if archive query failed
authorKim Alvefur <zash@zash.se>
Thu, 05 Sep 2013 15:24:09 +0200
changeset 1186 a172e7389cf6
parent 1185 30b681898c2d
child 1187 d677d1807bb0
mod_mam: Include textual error if archive query failed
mod_mam/mod_mam.lua
--- a/mod_mam/mod_mam.lua	Thu Sep 05 15:22:31 2013 +0200
+++ b/mod_mam/mod_mam.lua	Thu Sep 05 15:24:09 2013 +0200
@@ -111,7 +111,7 @@
 	});
 
 	if not data then
-		return origin.send(st.error_reply(stanza, "cancel", "internal-server-error"));
+		return origin.send(st.error_reply(stanza, "cancel", "internal-server-error", err));
 	end
 	local count = err;