diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2018-04-10 15:02:03 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2018-04-10 15:02:03 +0200 |
commit | 99444f2d0eca5bf61da5e4e8c37cce959f7ca4bc (patch) | |
tree | cbfa3ef5b25561f2e051c59c6e3ae819c0f29c56 | |
parent | Improve fix for #2288, don't mask errors on get_item (diff) |
Fix illegal match on previous commit
-rw-r--r-- | src/mod_pubsub.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 9a26dc14c..7b87d8d24 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -2004,10 +2004,11 @@ get_items(Host, Node, From, SubId, _MaxItems, ItemIds, RSM) -> Host, From, Owners, AccessModel, AllowedGroups), case ItemIds of [ItemId] -> + NotFound = xmpp:err_item_not_found(), case node_call(Host, Type, get_item, [Nidx, ItemId, From, AccessModel, PS, RG, undefined]) of - {error, xmpp:err_item_not_found()} -> {result, {[], undefined}}; + {error, NotFound} -> {result, {[], undefined}}; Result -> Result end; _ -> |