Skip to content

Commit

Permalink
handle and propegate errors from adapter.rec_data_or_trailers (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
kow3ns authored Feb 16, 2021
1 parent b8d8646 commit 2aff9a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/grpc/stub.ex
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ defmodule GRPC.Stub do

{:trailers, trailers} ->
{:ok, acc, GRPC.Transport.HTTP2.decode_headers(trailers)}

{:error, err} ->
{:error, err}
end
end

Expand Down

0 comments on commit 2aff9a8

Please sign in to comment.