From 57ec655accca89f0e8d1756cf7b2e73741240e11 Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Mon, 7 Jun 2021 16:03:32 +0100 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/asyncrpc/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/asyncrpc/client.py b/bitbake/lib/bb/asyncrpc/client.py index 79919c5be6..d917ab597c 100644 --- a/bitbake/lib/bb/asyncrpc/client.py +++ b/bitbake/lib/bb/asyncrpc/client.py @@ -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 -- cgit v1.2.3-54-g00ecf