diff --git a/lib/UserInterface/UserInterface.cpp b/lib/UserInterface/UserInterface.cpp index 69bb31a2..e36b305b 100644 --- a/lib/UserInterface/UserInterface.cpp +++ b/lib/UserInterface/UserInterface.cpp @@ -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";