diff options
author | Kim Alvefur <zash@zash.se> | 2021-04-05 16:23:59 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-04-05 16:23:59 +0200 |
commit | de641f6e24df2f835f17f62c40bd0e29f269d1bb (patch) | |
tree | 6d3bd3775db609e9114a60a951d7581901065660 /plugins/mod_http_file_share.lua | |
parent | 1f00a4fd8e369b2b9680f2a3f09c748c8db60e23 (diff) | |
download | prosody-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/mod_http_file_share.lua')
-rw-r--r-- | plugins/mod_http_file_share.lua | 2 |
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; |