Improve exception reporting.

This commit is contained in:
Axel Naumann 2013-09-11 09:36:37 +02:00 committed by sftnight
parent 4222ba870d
commit 3a8534d285

View File

@ -111,7 +111,12 @@ namespace cling {
e.diagnose();
}
catch(runtime::InterpreterException& e) {
llvm::errs() << e.what();
llvm::errs() << ">>> Caught an interpreter exception!\n"
<< ">>> " << e.what() << '\n';
}
catch(std::exception& e) {
llvm::errs() << ">>> Caught a std::exception!\n"
<< ">>> " << e.what() << '\n';
}
catch(...) {
llvm::errs() << "Exception occurred. Recovering...\n";