diff options
author | Paul Barker <pbarker@konsulko.com> | 2021-06-07 16:03:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-27 09:27:31 +0100 |
commit | bd8f8d7b055da15cd7bdd0b383061852a0f54cb7 (patch) | |
tree | e706263fab1cba2f77416155cb432116afe2a798 /lib/bb/asyncrpc | |
parent | aba88f40c47133ed9bc999e0298aca3bc8490912 (diff) | |
download | bitbake-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>
Diffstat (limited to 'lib/bb/asyncrpc')
-rw-r--r-- | lib/bb/asyncrpc/client.py | 2 |
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 |