Suppress expected error

This commit is contained in:
世界 committed 2022-08-25 11:02:27 +08:00
1 parent 350729cde8
commit a940703ae1
3 files changed
+18 -2

No files matched your search

+3
View File
@@ -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
}