'Send an error over.'

def addError(self, test, error):

    super(WorkerReporter, self).addError(test, error)
    testName = test.id()
    if isinstance(testName, unicode):
        testName = testName.encode('utf-8')
    failure = self._getFailure(error)
    error = failure.getErrorMessage().encode('utf-8')
    errorClass = qual(failure.type).encode('utf-8')
    frames = [frame.encode('utf-8') for frame in self._getFrames(failure)]
    self.ampProtocol.callRemote(managercommands.AddError, testName=testName, error=error, errorClass=errorClass, frames=frames)
