Propagate socket_error exception from handle_read. Otherwise Ninja crashes.

llvm-svn: 255718
This commit is contained in:
Adrian McCarthy 2015-12-15 23:51:27 +00:00
parent 04d4964462
commit e376ba0331
1 changed files with 2 additions and 3 deletions

View File

@ -140,13 +140,12 @@ class UnpicklingForwardingReaderChannel(asyncore.dispatcher):
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):