aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-30 09:53:10 +0100
committerKim Alvefur <zash@zash.se>2019-12-30 09:53:10 +0100
commita24af5103282cfb37705574d4bb5ddb393986b02 (patch)
tree0b00779a949a07f86a117eee1e97e722f3ea7a72
parent103c09e0c42be4c4fe3440955e4eaad3f5d058c5 (diff)
downloadprosody-a24af5103282cfb37705574d4bb5ddb393986b02.tar.gz
prosody-a24af5103282cfb37705574d4bb5ddb393986b02.zip
core.moduleapi: Fix error context in :send_iq API
It got passed as argument to reject() instead of the util.error function and was lost.
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 0a8adc36..dc1f899c 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -398,7 +398,7 @@ function api:send_iq(stanza, origin, timeout)
local function error_handler(event)
if event.stanza.attr.from == stanza.attr.to then
- reject(errutil.from_stanza(event.stanza), event);
+ reject(errutil.from_stanza(event.stanza, event));
return true;
end
end