-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic on zero send from server (#398)
- Maps a zero code of `connectWireError` to a CodeUnknown in `connectWireError) asError() *Error ` This could have been done in the unmarshaling to `connectWireError` but I chose to leave that to be exactly what was read off the wire. - Adds nil guard in `validateResponse` for asError - Adds tests for error mapping Fixes: https://github.com/bufbuild/connect-go/issues/396
- Loading branch information
Showing
2 changed files
with
29 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters