more unique error messages
This commit is contained in:
parent
a98990f573
commit
00feaaf76c
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ func (s *Server) listenAndServe(listener net.Listener) {
|
|||
if s.closed {
|
||||
return
|
||||
}
|
||||
log.Error(err)
|
||||
log.Error(errors.Prefix("accepting conn", err))
|
||||
} else {
|
||||
s.grp.Add(1)
|
||||
go func() {
|
||||
|
@ -330,7 +330,7 @@ func readNextRequest(conn net.Conn) ([]byte, error) {
|
|||
chunk, err := buf.ReadBytes('}')
|
||||
if err != nil {
|
||||
if err != io.EOF {
|
||||
log.Errorln("read error:", err)
|
||||
log.Errorln("readBytes error:", err)
|
||||
return request, err
|
||||
}
|
||||
eof = true
|
||||
|
|
Loading…
Reference in a new issue