From: Evgeny Khramtsov Date: Wed, 3 Jul 2019 16:16:54 +0000 (+0300) Subject: Fix jwt_key option processing X-Git-Tag: 19.08~131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7f66201668b8e304439d7ffa697a5a3a3319a22;p=ejabberd Fix jwt_key option processing --- diff --git a/src/ejabberd_options.erl b/src/ejabberd_options.erl index b74dea045..38d834a6b 100644 --- a/src/ejabberd_options.erl +++ b/src/ejabberd_options.erl @@ -415,7 +415,7 @@ opt_type(jwt_key) -> case file:read_file(Path) of {ok, Binary} -> Binary; {error, Reason} -> - econf:fail({jtw_key_error, Reason}) + econf:fail({read_file, Reason, Path}) end end). @@ -436,6 +436,7 @@ opt_type(jwt_key) -> {shaper, #{atom() => ejabberd_shaper:shaper_rate()}} | {shaper_rules, [{atom(), [ejabberd_shaper:shaper_rule()]}]} | {api_permissions, [ejabberd_access_permissions:permission()]} | + {jwt_key, binary()} | {append_host_config, [{binary(), any()}]} | {host_config, [{binary(), any()}]} | {define_macro, any()} |