Diff

mod_http_upload/mod_http_upload.lua @ 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
parent 3589:dec5683f91a2
child 3625:a578b4977bb0
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;