summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-22 17:50:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-22 17:50:19 +0000
commit3af16c1489796197335e5eb7067d396ffee4f37e (patch)
tree44067b8213503983563f528db169b86440c165d0
parenta00ce3bc24ca66ddf00a7a3129ac34a185af2c55 (diff)
Exception handling
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9003 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/testsuite.cpp9
1 files changed, 8 insertions, 1 deletions
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;