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) ->
|
ee_bridge_examples(Method) ->
|
||||||
case erlang:function_exported(emqx_ee_bridge, examples, 1) of
|
try
|
||||||
true -> emqx_ee_bridge:examples(Method);
|
emqx_ee_bridge:examples(Method)
|
||||||
false -> #{}
|
catch
|
||||||
|
_:_ -> #{}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
info_example(Type, Method) ->
|
info_example(Type, Method) ->
|
||||||
|
|
Loading…
Reference in New Issue