if you use TEST_F and implement your test class with ::testing::Test as base, you can check in the TearDown() if the test has any failures.
class TestsForFunctionX: public ::testing::Test
{
private:
void TearDown() override
{
if (HasFailure())
{
std::cerr << "My additional info";
}
}
}
TEST_F(TestsForFunctionX, BadInput)
{
ASSERT_TRUE(false);
}