Mercurial > prosody-hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 10574:f70c874b7936 | 10575:5cf8e96575b3 |
|---|---|
| 396 end | 396 end |
| 397 end | 397 end |
| 398 | 398 |
| 399 local function error_handler(event) | 399 local function error_handler(event) |
| 400 if event.stanza.attr.from == stanza.attr.to then | 400 if event.stanza.attr.from == stanza.attr.to then |
| 401 reject(errutil.from_stanza(event.stanza), event); | 401 reject(errutil.from_stanza(event.stanza, event)); |
| 402 return true; | 402 return true; |
| 403 end | 403 end |
| 404 end | 404 end |
| 405 | 405 |
| 406 if iq_cache:get(cache_key) then | 406 if iq_cache:get(cache_key) then |
