aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Barker <pbarker@konsulko.com>2021-06-07 16:03:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-27 09:27:31 +0100
commitbd8f8d7b055da15cd7bdd0b383061852a0f54cb7 (patch)
treee706263fab1cba2f77416155cb432116afe2a798
parentaba88f40c47133ed9bc999e0298aca3bc8490912 (diff)
downloadbitbake-bd8f8d7b055da15cd7bdd0b383061852a0f54cb7.tar.gz
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. Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/asyncrpc/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/asyncrpc/client.py b/lib/bb/asyncrpc/client.py
index 79919c5be..d917ab597 100644
--- a/lib/bb/asyncrpc/client.py
+++ b/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