Skip to content

Commit

Permalink
Propagate socket_error exception from handle_read. Otherwise Ninja cr…
Browse files Browse the repository at this point in the history
…ashes.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@255718 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
amccarth-google committed Dec 15, 2015
1 parent eecef40 commit 9dd58f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/Python/lldbsuite/test/dotest_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,12 @@ def handle_read(self):
print(
"\nINFO: received socket error when reading data "
"from test inferior:\n{}".format(socket_error))
# Should be good to return here.
return
raise
except Exception as general_exception:
print(
"\nERROR: received non-socket error when reading data "
"from the test inferior:\n{}".format(general_exception))
return
raise

# Consume the message content.
while data and (len(data) > 0):
Expand Down

0 comments on commit 9dd58f2

Please sign in to comment.