* src/gen_mod.erl: Throw error more cleanly.

SVN Revision: 831
This commit is contained in:
Mickaël Rémond 2007-07-26 09:56:38 +00:00
parent 83397fdc45
commit 8d9e093788
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2007-07-26 Mickael Remond <mickael.remond@process-one.net>
* src/gen_mod.erl: Throw error more cleanly.
* src/mod_configure.erl: One ACL call was not virtual host
compliant.

View File

@ -94,7 +94,7 @@ get_opt(Opt, Opts) ->
case lists:keysearch(Opt, 1, Opts) of
false ->
% TODO: replace with more appropriate function
[] = {undefined_option, Opt};
throw({undefined_option, Opt});
{value, {_, Val}} ->
Val
end.