Also strip the "runtime" part of the Interpreter exception here.
This commit is contained in:
parent
1d46fe88d8
commit
923b4ce39b
@ -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):
|
||||
|
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user