mod_http_upload: Fix error message format string

The store_file/4 function might return non-string error information.
This commit is contained in:
Holger Weiss 2015-10-25 00:18:11 +02:00
parent eeba72cd4c
commit 4936e82bd1
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ process(LocalPath, #request{method = 'PUT', host = Host, ip = IP,
ok ->
http_response(Host, 201);
{error, Error} ->
?ERROR_MSG("Cannot store file ~s from ~s for ~s: ~s",
?ERROR_MSG("Cannot store file ~s from ~s for ~s: ~p",
[Path, ?ADDR_TO_STR(IP), Host, Error]),
http_response(Host, 500)
end;