diff options
author | Micael Karlberg <[email protected]> | 2011-03-28 11:09:46 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-03-28 11:09:46 +0200 |
commit | 3b9072a22c8050215c3d72e46c31e73c2a95532d (patch) | |
tree | c6a6a250a9f6ec5da7aa5b3d3bee841572bfe5d2 /lib/inets/src/http_server/httpd_file.erl | |
parent | 04623176f365ac58eba1df64d3054eba6c482ce4 (diff) | |
parent | cbe8b2e034a8b2cd6052df5e27f1b229ded9748e (diff) | |
download | otp-3b9072a22c8050215c3d72e46c31e73c2a95532d.tar.gz otp-3b9072a22c8050215c3d72e46c31e73c2a95532d.tar.bz2 otp-3b9072a22c8050215c3d72e46c31e73c2a95532d.zip |
Merge branch 'rj/fix-httpd-format' into bmk/inets/inet56_integration
OTP-9157
Diffstat (limited to 'lib/inets/src/http_server/httpd_file.erl')
-rw-r--r-- | lib/inets/src/http_server/httpd_file.erl | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/inets/src/http_server/httpd_file.erl b/lib/inets/src/http_server/httpd_file.erl index 7e21d9e158..ccc1f7874a 100644 --- a/lib/inets/src/http_server/httpd_file.erl +++ b/lib/inets/src/http_server/httpd_file.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2006-2010. All Rights Reserved. +%% Copyright Ericsson AB 2006-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -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)}. |