aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gen_mod.erl2
1 files changed, 1 insertions, 1 deletions
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.