fix(docs): ee bridge api docs generation
Use try catch. Because function was unexported before called.
This commit is contained in:
parent
8db9b6690c
commit
43c964c87e
|
@ -168,9 +168,10 @@ bridge_info_examples(Method) ->
|
|||
).
|
||||
|
||||
ee_bridge_examples(Method) ->
|
||||
case erlang:function_exported(emqx_ee_bridge, examples, 1) of
|
||||
true -> emqx_ee_bridge:examples(Method);
|
||||
false -> #{}
|
||||
try
|
||||
emqx_ee_bridge:examples(Method)
|
||||
catch
|
||||
_:_ -> #{}
|
||||
end.
|
||||
|
||||
info_example(Type, Method) ->
|
||||
|
|
Loading…
Reference in New Issue