Mercurial > prosody-hg
diff core/moduleapi.lua @ 10575:5cf8e96575b3
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.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 30 Dec 2019 09:53:10 +0100 |
| parents | f864e685e618 |
| children | f88f1151bc72 |
line wrap: on
line diff
--- a/core/moduleapi.lua Sun Dec 29 22:20:51 2019 +0100 +++ b/core/moduleapi.lua Mon Dec 30 09:53:10 2019 +0100 @@ -398,7 +398,7 @@ 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
