mirror of
https://github.com/LBRYFoundation/reflector.go.git
synced 2025-08-23 17:27:25 +00:00
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 {
|
if s.closed {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Error(err)
|
log.Error(errors.Prefix("accepting conn", err))
|
||||||
} else {
|
} else {
|
||||||
s.grp.Add(1)
|
s.grp.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
|
@ -330,7 +330,7 @@ func readNextRequest(conn net.Conn) ([]byte, error) {
|
||||||
chunk, err := buf.ReadBytes('}')
|
chunk, err := buf.ReadBytes('}')
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err != io.EOF {
|
if err != io.EOF {
|
||||||
log.Errorln("read error:", err)
|
log.Errorln("readBytes error:", err)
|
||||||
return request, err
|
return request, err
|
||||||
}
|
}
|
||||||
eof = true
|
eof = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue