fix: return error on start hstreamdb crash

This commit is contained in:
Shawn 2022-08-30 10:19:40 +08:00
parent 262e68f7d2
commit e0a6a61d73
1 changed files with 4 additions and 2 deletions

View File

@ -135,13 +135,15 @@ start_client(InstId, Config) ->
do_start_client(InstId, Config)
catch
E:R:S ->
?SLOG(error, #{
Error = #{
msg => "start hstreamdb connector error",
connector => InstId,
error => E,
reason => R,
stack => S
})
},
?SLOG(error, Error),
{error, Error}
end.
do_start_client(InstId, Config = #{url := Server, pool_size := PoolSize}) ->