Comparison

plugins/mod_pubsub/pubsub.lib.lua @ 8953:19cbe80df9c8

mod_pubsub: Make pubsub.lib aware of internal-server-error condition
author Kim Alvefur <zash@zash.se>
date Sun, 01 Jul 2018 04:32:26 +0200
parent 8940:365b16109d95
child 8978:9d6c0c11e383
comparison
equal deleted inserted replaced
8952:15bb54f96dd1 8953:19cbe80df9c8
24 ["nodeid-required"] = { "modify", "bad-request", nil, "nodeid-required" }; 24 ["nodeid-required"] = { "modify", "bad-request", nil, "nodeid-required" };
25 ["item-not-found"] = { "cancel", "item-not-found" }; 25 ["item-not-found"] = { "cancel", "item-not-found" };
26 ["not-subscribed"] = { "modify", "unexpected-request", nil, "not-subscribed" }; 26 ["not-subscribed"] = { "modify", "unexpected-request", nil, "not-subscribed" };
27 ["forbidden"] = { "auth", "forbidden" }; 27 ["forbidden"] = { "auth", "forbidden" };
28 ["not-allowed"] = { "cancel", "not-allowed" }; 28 ["not-allowed"] = { "cancel", "not-allowed" };
29 ["internal-server-error"] = { "wait", "internal-server-error" };
29 }; 30 };
30 local function pubsub_error_reply(stanza, error) 31 local function pubsub_error_reply(stanza, error)
31 local e = pubsub_errors[error]; 32 local e = pubsub_errors[error];
32 local reply = st.error_reply(stanza, t_unpack(e, 1, 3)); 33 local reply = st.error_reply(stanza, t_unpack(e, 1, 3));
33 if e[4] then 34 if e[4] then