fix(ft): unwrap error details when reader fails to start
This commit is contained in:
parent
45f00e14a9
commit
2880c8f4eb
|
@ -33,7 +33,12 @@ start_child(CallerPid, Filename) ->
|
|||
start => {emqx_ft_storage_fs_reader, start_link, [CallerPid, Filename]},
|
||||
restart => temporary
|
||||
},
|
||||
supervisor:start_child(?MODULE, Childspec).
|
||||
case supervisor:start_child(?MODULE, Childspec) of
|
||||
{ok, Pid} ->
|
||||
{ok, Pid};
|
||||
{error, {Reason, _Child}} ->
|
||||
{error, Reason}
|
||||
end.
|
||||
|
||||
init(_) ->
|
||||
SupFlags = #{
|
||||
|
|
Loading…
Reference in New Issue