def addError(self, testName, error, errorClass, frames):
        """
        Add an error to the reporter.
        """
        failure = self._buildFailure(error, errorClass, frames)
        self._result.addError(self._testCase, failure)
        return {'success': True}

        Add an error to the reporter.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/_dist/worker.py