# HG changeset patch # User Kim Alvefur # Date 1557316309 -7200 # Node ID d8cc8b71a1999c4ac09bc7109478fc31397b6173 # Parent dec5683f91a272582a9420531da8f7624fa3b0e1 mod_http_upload: Propagate errors from expiry procedure diff -r dec5683f91a2 -r d8cc8b71a199 mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Wed May 08 13:50:49 2019 +0200 +++ b/mod_http_upload/mod_http_upload.lua Wed May 08 13:51:49 2019 +0200 @@ -80,6 +80,7 @@ local function expire(username, host) if not max_age then return true; end local uploads, err = datamanager.list_load(username, host, module.name); + if err then return false, err; end if not uploads then return true; end uploads = array(uploads); local expiry = os.time() - max_age;