Remove extra error wrapping
This commit is contained in:
parent
4f4443069d
commit
a00e9d3183
@ -390,7 +390,7 @@ func (this *readerA) pull() (uint16, error) {
|
|||||||
// close and return error on failure
|
// close and return error on failure
|
||||||
this.eof = true
|
this.eof = true
|
||||||
this.parent.Close()
|
this.parent.Close()
|
||||||
return 0, fmt.Errorf("could not receive message: %w", this.parent.bestErr())
|
return 0, this.parent.bestErr()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *readerA) Read(buffer []byte) (int, error) {
|
func (this *readerA) Read(buffer []byte) (int, error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user