mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-01-05 08:19:58 +01:00
Clarify error message
This commit is contained in:
parent
4f3734957c
commit
7dcbfaf44b
|
|
@ -90,7 +90,7 @@ func (s *streamCommon) tryReceivePacket(timeout time.Duration, packetLength, mat
|
|||
func (s *streamCommon) expect(packetLength int, b []byte) ([]byte, error) {
|
||||
r := s.tryReceivePacket(expectTimeoutDuration, packetLength, 0, b)
|
||||
if r == nil {
|
||||
return nil, errors.New(s.name + "/expect timeout")
|
||||
return nil, errors.New(s.name + "/expect timeout - the server did not answer, check if it's running")
|
||||
}
|
||||
return r, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue