# HG changeset patch # User Kim Alvefur # Date 1557033738 -7200 # Node ID f6959fe81a1d89a804334cb79eee3064afab9865 # Parent b56654f89cd57543d447ffa28efb77a9cb15d8bc mod_storage_memory: Return correct error even if no archive data available diff -r b56654f89cd5 -r f6959fe81a1d plugins/mod_storage_memory.lua --- a/plugins/mod_storage_memory.lua Sun May 05 07:16:03 2019 +0200 +++ b/plugins/mod_storage_memory.lua Sun May 05 07:22:18 2019 +0200 @@ -91,6 +91,9 @@ local items = self.store[username or NULL]; if not items then if query then + if query.before or query.after then + return nil, "item-not-found"; + end if query.total then return function () end, 0; end