Also strip the "runtime" part of the Interpreter exception here.

This commit is contained in:
Axel Naumann 2015-12-01 15:41:16 +01:00 committed by sftnight
parent 1d46fe88d8
commit 923b4ce39b
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ namespace cling {
/// Note that this exception is *not* thrown during the execution of the
/// user's code but during its compilation (at runtime).
class CompilationException:
public virtual runtime::InterpreterException,
public virtual InterpreterException,
public virtual std::runtime_error {
public:
CompilationException(const std::string& reason):

View File

@ -149,10 +149,10 @@ namespace cling {
TI.SetPrompt(Prompt.c_str());
}
catch(runtime::NullDerefException& e) {
catch(NullDerefException& e) {
e.diagnose();
}
catch(runtime::InterpreterException& e) {
catch(InterpreterException& e) {
llvm::errs() << ">>> Caught an interpreter exception!\n"
<< ">>> " << e.what() << '\n';
}