mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Add ability to use additional custom errors when parsing options
This commit is contained in:
parent
051bf2968a
commit
0fdf58b1ec
@ -197,6 +197,11 @@ format_error(eimp_error) ->
|
|||||||
format("ejabberd is built without image converter support", []);
|
format("ejabberd is built without image converter support", []);
|
||||||
format_error({mqtt_codec, Reason}) ->
|
format_error({mqtt_codec, Reason}) ->
|
||||||
mqtt_codec:format_error(Reason);
|
mqtt_codec:format_error(Reason);
|
||||||
|
format_error({external_module_error, Module, Error}) ->
|
||||||
|
try Module:format_error(Error)
|
||||||
|
catch _:_ ->
|
||||||
|
format("Invalid value", [])
|
||||||
|
end;
|
||||||
format_error(Reason) ->
|
format_error(Reason) ->
|
||||||
yconf:format_error(Reason).
|
yconf:format_error(Reason).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user