From 4936e82bd1fec5e6cc099cf7a9bc36a5c288047a Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sun, 25 Oct 2015 00:18:11 +0200 Subject: [PATCH] mod_http_upload: Fix error message format string The store_file/4 function might return non-string error information. --- mod_http_upload/src/mod_http_upload.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_http_upload/src/mod_http_upload.erl b/mod_http_upload/src/mod_http_upload.erl index eb85dc3..7760fe2 100644 --- a/mod_http_upload/src/mod_http_upload.erl +++ b/mod_http_upload/src/mod_http_upload.erl @@ -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;