aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_server/httpd_file.erl
diff options
context:
space:
mode:
authorRicardo Catalinas Jiménez <[email protected]>2011-03-17 01:30:51 +0100
committerRicardo Catalinas Jiménez <[email protected]>2011-03-17 01:55:13 +0100
commitcbe8b2e034a8b2cd6052df5e27f1b229ded9748e (patch)
tree61b054c23b50ebb6ff9d90b3dfc431626931f0a1 /lib/inets/src/http_server/httpd_file.erl
parent91b2e57ea0e3ab794d4b57a12ef10205383525a5 (diff)
downloadotp-cbe8b2e034a8b2cd6052df5e27f1b229ded9748e.tar.gz
otp-cbe8b2e034a8b2cd6052df5e27f1b229ded9748e.tar.bz2
otp-cbe8b2e034a8b2cd6052df5e27f1b229ded9748e.zip
Fix log messages formating in httpd
Diffstat (limited to 'lib/inets/src/http_server/httpd_file.erl')
-rw-r--r--lib/inets/src/http_server/httpd_file.erl15
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/inets/src/http_server/httpd_file.erl b/lib/inets/src/http_server/httpd_file.erl
index 7e21d9e158..dc1dae8bc9 100644
--- a/lib/inets/src/http_server/httpd_file.erl
+++ b/lib/inets/src/http_server/httpd_file.erl
@@ -26,22 +26,21 @@
handle_error(eacces, Op, ModData, Path) ->
- handle_error(403, Op, ModData, Path,"Forbidden");
+ handle_error(403, Op, ModData, Path, ": Forbidden");
handle_error(enoent, Op, ModData, Path) ->
- handle_error(404, Op, ModData, Path,"File not found");
+ handle_error(404, Op, ModData, Path, ": File not found");
handle_error(enotdir, Op, ModData, Path) ->
handle_error(404, Op, ModData, Path,
- ": A component of the file name is not a directory");
+ ": A component of the file name is not a directory");
handle_error(emfile, Op, _ModData, Path) ->
handle_error(500, Op, none, Path, ": To many open files");
handle_error({enfile,_}, Op, _ModData, Path) ->
handle_error(500, Op, none, Path, ": File table overflow");
handle_error(_Reason, Op, ModData, Path) ->
- handle_error(404, Op, ModData, Path, "File not found").
-
-handle_error(StatusCode, Op, none, Path, Reason) ->
- {StatusCode, none, ?NICE("Can't " ++ Op ++ Path ++ Reason)};
+ handle_error(404, Op, ModData, Path, ": File not found").
+handle_error(StatusCode, Op, none, Path, Reason) ->
+ {StatusCode, none, ?NICE("Can't " ++ Op ++ " " ++ Path ++ Reason)};
handle_error(StatusCode, Op, ModData, Path, Reason) ->
{StatusCode, ModData#mod.request_uri,
- ?NICE("Can't " ++ Op ++ Path ++ Reason)}.
+ ?NICE("Can't " ++ Op ++ " " ++ Path ++ Reason)}.