diff --git a/Main.cpp b/Main.cpp index 42f783b..0d15cdb 100644 --- a/Main.cpp +++ b/Main.cpp @@ -88,7 +88,14 @@ int _tmain(int argc, _TCHAR* argv[]) return 1; # else assert(0.1 > 0.0); // assert does run correctly - run_unit_tests(); + try + { + run_unit_tests(); + } + catch (const std::exception& e) + { + cerr << endl << "Error: " << e.what() << endl; + } cout << "All tests have completed." << endl; return 0; // if tests succeed, we are happy # endif // NDEBUG