Comparison

plugins/mod_storage_internal.lua @ 10024:4a0d990253a0

mod_storage_internal: Return appropriate error even with empty archive
author Kim Alvefur <zash@zash.se>
date Sun, 05 May 2019 07:24:12 +0200
parent 10018:7408b9473729
child 10220:1e2b444acb72
comparison
equal deleted inserted replaced
10023:f6959fe81a1d 10024:4a0d990253a0
123 local items, err = datamanager.list_load(username, host, self.store); 123 local items, err = datamanager.list_load(username, host, self.store);
124 if not items then 124 if not items then
125 if err then 125 if err then
126 return items, err; 126 return items, err;
127 elseif query then 127 elseif query then
128 if query.before or query.after then
129 return nil, "item-not-found";
130 end
128 if query.total then 131 if query.total then
129 return function () end, 0; 132 return function () end, 0;
130 end 133 end
131 end 134 end
132 return function () end; 135 return function () end;