aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
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
commitcdd6144dcc649f612c86f786c4e7fe8a12653582 (patch)
tree0b00779a949a07f86a117eee1e97e722f3ea7a72 /core/moduleapi.lua
parent30f7e379d4b316c197c837dce2c47b73b8b77d1f (diff)
downloadprosody-cdd6144dcc649f612c86f786c4e7fe8a12653582.tar.gz
prosody-cdd6144dcc649f612c86f786c4e7fe8a12653582.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.
Diffstat (limited to 'core/moduleapi.lua')
-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