Print a more useful message when an std::exception is thrown whilst running a test.

This commit is contained in:
Robert Knight 2011-08-25 11:52:02 +01:00
parent 62bf142f06
commit 78b3c14260

View file

@ -54,6 +54,10 @@ class TestUtils
tests.runTest(&testInstance,i);
}
}
catch (const std::exception& ex)
{
errorText = ex.what();
}
catch (const std::string& error)
{
errorText = error;