Mercurial > prosody-modules
comparison mod_mam/mod_mam.lua @ 1186:a172e7389cf6
mod_mam: Include textual error if archive query failed
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 05 Sep 2013 15:24:09 +0200 |
parents | 30b681898c2d |
children | d677d1807bb0 |
comparison
equal
deleted
inserted
replaced
1185:30b681898c2d | 1186:a172e7389cf6 |
---|---|
109 reverse = reverse; | 109 reverse = reverse; |
110 total = true; | 110 total = true; |
111 }); | 111 }); |
112 | 112 |
113 if not data then | 113 if not data then |
114 return origin.send(st.error_reply(stanza, "cancel", "internal-server-error")); | 114 return origin.send(st.error_reply(stanza, "cancel", "internal-server-error", err)); |
115 end | 115 end |
116 local count = err; | 116 local count = err; |
117 | 117 |
118 -- Wrap it in stuff and deliver | 118 -- Wrap it in stuff and deliver |
119 local first, last; | 119 local first, last; |