mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 22:57:38 +03:00
mod_http_files: Log 404 failure reason
This commit is contained in:
parent
23e05cc038
commit
19f0eb98bf
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ function serve_file(event, path)
|
||||||
end
|
end
|
||||||
local f, err = open(full_path, "rb");
|
local f, err = open(full_path, "rb");
|
||||||
if not f then
|
if not f then
|
||||||
|
module:log("warn", "Failed to open file: %s", err);
|
||||||
return 404;
|
return 404;
|
||||||
end
|
end
|
||||||
local data = f:read("*a");
|
local data = f:read("*a");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue