Handle better the exceptions.

This commit is contained in:
Vassil Vassilev 2013-09-07 10:44:01 +02:00 committed by sftnight
parent 89d47f66d1
commit 0c4a39f10f

View File

@ -91,12 +91,10 @@ namespace cling {
}
catch(runtime::NullDerefException& e) {
llvm::errs() << "Exception was thrown at runtime. Recovering...\n";
e.what();
e.diagnose();
}
catch(runtime::InterpreterException& e) {
// The diagnostic goes here:
e.what();
llvm::errs() << e.what();
}
catch(...) {
llvm::errs() << "Exception occurred. Recovering...\n";