From 7dcbfaf44b338df3175d8b0ce042360e0464943f Mon Sep 17 00:00:00 2001 From: Nonoo Date: Tue, 27 Oct 2020 09:21:36 +0100 Subject: [PATCH] Clarify error message --- streamcommon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamcommon.go b/streamcommon.go index 0696313..0c2cc21 100644 --- a/streamcommon.go +++ b/streamcommon.go @@ -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 }