diff options
author | Mickaël Rémond <mickael.remond@process-one.net> | 2007-07-26 09:56:38 +0000 |
---|---|---|
committer | Mickaël Rémond <mickael.remond@process-one.net> | 2007-07-26 09:56:38 +0000 |
commit | 8d9e093788a281a3e17eca77039acf2c0dd75058 (patch) | |
tree | 8ede1c7888b5c7ee7f6db43bc8a19d92f20462db | |
parent | * src/mod_configure.erl: One ACL call was not virtual host compliant. (diff) |
* src/gen_mod.erl: Throw error more cleanly.
SVN Revision: 831
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/gen_mod.erl | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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. diff --git a/src/gen_mod.erl b/src/gen_mod.erl index 5f96a2fc6..7ba6db182 100644 --- a/src/gen_mod.erl +++ b/src/gen_mod.erl @@ -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. |