From b7f66201668b8e304439d7ffa697a5a3a3319a22 Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Wed, 3 Jul 2019 19:16:54 +0300 Subject: [PATCH] Fix jwt_key option processing --- src/ejabberd_options.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()} |