# HG changeset patch # User Kim Alvefur # Date 1557033852 -7200 # Node ID 4a0d990253a00b7579af5f0a2d360d28ae6c8293 # Parent f6959fe81a1d89a804334cb79eee3064afab9865 mod_storage_internal: Return appropriate error even with empty archive diff -r f6959fe81a1d -r 4a0d990253a0 plugins/mod_storage_internal.lua --- a/plugins/mod_storage_internal.lua Sun May 05 07:22:18 2019 +0200 +++ b/plugins/mod_storage_internal.lua Sun May 05 07:24:12 2019 +0200 @@ -125,6 +125,9 @@ if err then return items, err; elseif query then + if query.before or query.after then + return nil, "item-not-found"; + end if query.total then return function () end, 0; end