Clarify error message

This commit is contained in:
Nonoo 2020-10-27 09:21:36 +01:00
parent 4f3734957c
commit 7dcbfaf44b

View file

@ -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
}