def errReceivedIsBad(self, text):
        if self.deferred is not None:
            self.onProcessEnded = defer.Deferred()
            err = _UnexpectedErrorOutput(text, self.onProcessEnded)
            self.deferred.errback(failure.Failure(err))
            self.deferred = None
            self.transport.loseConnection()
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/utils.py/_BackRelay.errReceivedIsBad/original