Skip to content

Commit

Permalink
fix: update grpc upload error diagnostics to be tolerant of receiving…
Browse files Browse the repository at this point in the history
… an error if no request has been sent (#2732)
  • Loading branch information
BenWhitehead authored Sep 25, 2024
1 parent a14cd37 commit fff72d5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ public void onError(Throwable t) {
tmp.getCode(),
tmp.getMessage(),
tmp.getReason(),
ImmutableList.of(lastWrittenRequest),
lastWrittenRequest != null
? ImmutableList.of(lastWrittenRequest)
: ImmutableList.of(),
null,
context,
t);
Expand Down

0 comments on commit fff72d5

Please sign in to comment.