From 3af16c1489796197335e5eb7067d396ffee4f37e Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 22 Feb 2008 17:50:19 +0000 Subject: Exception handling git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9003 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/testsuite.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/testsuite.cpp') diff --git a/src/testsuite.cpp b/src/testsuite.cpp index 2396f142c..939c64350 100644 --- a/src/testsuite.cpp +++ b/src/testsuite.cpp @@ -114,7 +114,14 @@ bool TestSuite::DoThreadTests() TestSuiteThread* tst = new TestSuiteThread(); cout << "ThreadEngine::Create on TestSuiteThread...\n"; - te->Create(tst); + try + { + te->Create(tst); + } + catch (CoreException &ce) + { + cout << "Failure: " << ce.GetReason() << endl;s + } cout << "Type any line and press enter to end test.\n"; cin >> anything; -- cgit v1.2.3