[Opt, Error,
misc:format_val({yaml, Val})]),
erlang:error(invalid_option);
- _:_ ->
+ _:R when R /= undef ->
?ERROR_MSG("Invalid value for "
"option '~s': ~s",
[Opt, misc:format_val({yaml, Val})]),
catch _:_ -> listen_opt_type(Opt)
end,
try {Opt, VFun(Val)}
- catch _:_ ->
+ catch _:R when R /= undef ->
?ERROR_MSG("Invalid value of listening option ~s: ~s",
[Opt, misc:format_val({yaml, Val})]),
erlang:error(badarg)
NewVal -> [{Opt, NewVal}]
catch {invalid_syntax, Error} ->
err_invalid_option(Opt, Val, Error);
- _:_ ->
+ _:R when R /= undef ->
err_invalid_option(Opt, Val)
end.