mod_register_web should response 404 instead of process crash.

This commit is contained in:
HAMANO Tsukasa 2014-04-30 13:39:17 +09:00
parent ce22239d85
commit 0e0bd3329d
1 changed files with 4 additions and 1 deletions

View File

@ -140,7 +140,10 @@ process([<<"change_password">>],
list_to_binary([?T(<<"There was an error changing the password: ">>),
?T(get_error_text(Error))]),
{404, [], ErrorText}
end.
end;
process(Path, _Request) ->
{404, [], "Not Found"}.
%%%----------------------------------------------------------------------
%%% CSS