Diff

mod_http_upload/mod_http_upload.lua @ 3340:6081cbfd1220

mod_http_upload: Abort and throw error in case of failure to iterate over users
author Kim Alvefur <zash@zash.se>
date Thu, 27 Sep 2018 20:03:10 +0200
parent 3339:babb584e24a2
child 3341:1e1dbd7e5b6c
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua	Thu Sep 27 19:54:26 2018 +0200
+++ b/mod_http_upload/mod_http_upload.lua	Thu Sep 27 20:03:10 2018 +0200
@@ -334,7 +334,7 @@
 			if user then
 				assert(expire(user, host));
 			else
-				for user in datamanager.users(host, module.name, "list") do
+				for user in assert(datamanager.users(host, module.name, "list")) do
 					expire(user, host);
 				end
 			end