diff options
author | Paul Barker <pbarker@konsulko.com> | 2021-06-07 16:03:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-29 23:21:24 +0100 |
commit | 57ec655accca89f0e8d1756cf7b2e73741240e11 (patch) | |
tree | c446fb7dccb080cc394432d5e832c4988feef9e9 /bitbake | |
parent | a35c6ef27489f918cce8f0242f926bf9fd4ce773 (diff) | |
download | poky-57ec655accca89f0e8d1756cf7b2e73741240e11.tar.gz |
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>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/asyncrpc/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
77 | line = line.decode("utf-8") | 77 | line = line.decode("utf-8") |
78 | 78 | ||
79 | if not line.endswith("\n"): | 79 | if not line.endswith("\n"): |
80 | raise ConnectionError("Bad message %r" % msg) | 80 | raise ConnectionError("Bad message %r" % (line)) |
81 | 81 | ||
82 | return line | 82 | return line |
83 | 83 | ||