Mercurial > prosody-modules
changeset 3590:d8cc8b71a199
mod_http_upload: Propagate errors from expiry procedure
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 08 May 2019 13:51:49 +0200 |
parents | dec5683f91a2 |
children | 3f8383c5a045 |
files | mod_http_upload/mod_http_upload.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;