commit | aad3ee1c0eda352f34644b7b958500381ff38c2b | [log] [tgz] |
---|---|---|
author | Cassondra Foesch <puellanivis@gmail.com> | Mon Jul 11 11:34:22 2022 |
committer | Cassondra Foesch <puellanivis@gmail.com> | Mon Jul 11 11:34:22 2022 |
tree | ac96f4dd773a54fbfbfa1d76ada41450967425ef | |
parent | cc19e20d7290e96a0533d150b141b6eade66ea98 [diff] |
an even better error message
diff --git a/client.go b/client.go index 6911b6a..1399583 100644 --- a/client.go +++ b/client.go
@@ -276,7 +276,7 @@ typ, data, err := c.recvPacket(0) if err != nil { if err == io.EOF { - return io.ErrUnexpectedEOF + return fmt.Errorf("server unexpectedly closed connection: %w", io.ErrUnexpectedEOF) } return err