'The ``FirstError`` has a reference to the ``Failure`` produced by the
first of the supplied ``deferreds`` that failed.'

@capture_logging((lambda self, logger: logger.flush_tracebacks(ZeroDivisionError)))
def test_first_error_value(self, logger):

    failure1 = Failure(ZeroDivisionError('failure1'))
    failure2 = Failure(ZeroDivisionError('failure1'))
    d = gather_deferreds([fail(failure1), succeed(None), fail(failure2)])
    first_error = self.failureResultOf(d, FirstError)
    self.assertIs(first_error.value.subFailure, failure1)
