mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-07 14:58:56 +02:00
* src/gen_mod.erl: Throw error more cleanly.
SVN Revision: 831
This commit is contained in:
parent
83397fdc45
commit
8d9e093788
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user