Suppress expected error
This commit is contained in:
3 files changed
+18
-2
No files matched your search
@@ -102,5 +102,8 @@ func wrapError(err error) error {
|
||||
if strings.Contains(err.Error(), "EOF") {
|
||||
return io.EOF
|
||||
}
|
||||
if strings.Contains(err.Error(), "the client connection is closing") {
|
||||
return net.ErrClosed
|
||||
}
|
||||
return err
|
||||
}
|
||||
Reference in new issue
Block a user