aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-04-05 16:23:59 +0200
committerKim Alvefur <zash@zash.se>2021-04-05 16:23:59 +0200
commitde641f6e24df2f835f17f62c40bd0e29f269d1bb (patch)
tree6d3bd3775db609e9114a60a951d7581901065660 /plugins
parent1f00a4fd8e369b2b9680f2a3f09c748c8db60e23 (diff)
downloadprosody-de641f6e24df2f835f17f62c40bd0e29f269d1bb.tar.gz
prosody-de641f6e24df2f835f17f62c40bd0e29f269d1bb.zip
mod_http_file_share: Fix logging of error opening file
It's annoying that Lua interpolates the filename into the error message.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_http_file_share.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua
index c71639ab..74c97a1b 100644
--- a/plugins/mod_http_file_share.lua
+++ b/plugins/mod_http_file_share.lua
@@ -342,7 +342,7 @@ function handle_download(event, path) -- GET /uploads/:slot+filename
local filename = get_filename(slot_id);
local handle, ferr = io.open(filename);
if not handle then
- module:log("error", "Could not open file: %s", filename, ferr);
+ module:log("error", "Could not open file for reading: %s", ferr);
-- This can be because the upload slot wasn't used, or the file disappeared
-- somehow, or permission issues.
return 410;