Skip to content

Commit

Permalink
fix: return any possible error reasons from `greptimedb:is_alive(Clie…
Browse files Browse the repository at this point in the history
…nt, true)` (#40)

grpcbox may return `{http_error, _, _}` which doesn't match `{error, Reason}` pattern.
  • Loading branch information
SergeTupchiy authored May 17, 2024
1 parent 959f841 commit 07f11be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/greptimedb.erl
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,7 @@ rpc_write_stream(#{pool := Pool, cli_opts := Options} = _Client) ->

maybe_return_reason({error, Reason}, true) ->
{false, Reason};
maybe_return_reason(Error, true) ->
{false, Error};
maybe_return_reason(_, _) ->
false.

0 comments on commit 07f11be

Please sign in to comment.