diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-07-03 19:16:54 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-07-03 19:16:54 +0300 |
commit | b7f66201668b8e304439d7ffa697a5a3a3319a22 (patch) | |
tree | 47e68c7763a4067afda1bb3656334b9951830b85 /src/ejabberd_options.erl | |
parent | Use correct virtual host (diff) |
Fix jwt_key option processing
Diffstat (limited to 'src/ejabberd_options.erl')
-rw-r--r-- | src/ejabberd_options.erl | 3 |
1 files changed, 2 insertions, 1 deletions
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()} | |