Remove extra error wrapping
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user