bitbake: asyncrpc: Fix bad message error in client

If there is an issue with the format of the reply given by the server then we
should print this reply line in the error message. Printing the message which
the client sent doesn't illuminate anything here.

(Bitbake rev: bd8f8d7b055da15cd7bdd0b383061852a0f54cb7)

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Barker
2021-06-07 16:03:32 +01:00
committed by Richard Purdie
parent a35c6ef274
commit 57ec655acc

View File

@@ -77,7 +77,7 @@ class AsyncClient(object):
line = line.decode("utf-8")
if not line.endswith("\n"):
raise ConnectionError("Bad message %r" % msg)
raise ConnectionError("Bad message %r" % (line))
return line