mod_http_upload: Abort and throw error in case of failure to iterate over users
authorKim Alvefur <zash@zash.se>
Thu, 27 Sep 2018 20:03:10 +0200
changeset 3344 6081cbfd1220
parent 3343 babb584e24a2
child 3345 1e1dbd7e5b6c
mod_http_upload: Abort and throw error in case of failure to iterate over users
mod_http_upload/mod_http_upload.lua
--- 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