Commit e17eac3
committed
Put source error into the Display impl of Status
Here's how the error looks before this change:
```
status: 'Some resource has been exhausted', self: "h2 protocol error: http2 error"
```
And here it is after:
```
status: 'Some resource has been exhausted', self: "h2 protocol error: http2 error", source: tonic::transport::Error(Transport, hyper::Error(Http2, Error { kind: GoAway(b"ivan_says_hello", ENHANCE_YOUR_CALM, Remote) }))
```
The latter gives the user a lot more context about the issue.1 parent ff7b540 commit e17eac3
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
760 | 763 | | |
761 | 764 | | |
762 | 765 | | |
| |||
0 commit comments