# HG changeset patch # User Emmanuel Gil Peyrot # Date 1573658870 -3600 # Node ID b3fb32bd1f015759e3e4964a1a0269a8555d3ce2 # Parent 1ed3d86eeaedb0369390c0fa46d0bf6aa2455e59 mod_bookmarks2: Use the correct error when failing to retrieve bookmarks2 to reply to Private XML request. diff -r 1ed3d86eeaed -r b3fb32bd1f01 mod_bookmarks2/mod_bookmarks2.lua --- a/mod_bookmarks2/mod_bookmarks2.lua Wed Nov 13 16:25:21 2019 +0100 +++ b/mod_bookmarks2/mod_bookmarks2.lua Wed Nov 13 16:27:50 2019 +0100 @@ -48,8 +48,8 @@ module:log("debug", "Got no PEP bookmarks item for %s, returning empty private bookmarks", jid); session.send(st.reply(stanza):add_child(query)); else - module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", jid, id); - session.send(st.error_reply(stanza, "cancel", "internal-server-error", "Failed to retrive bookmarks from PEP")); + module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", jid, ret); + session.send(st.error_reply(stanza, "cancel", ret, "Failed to retrive bookmarks from PEP")); end return true; end