Add proper handling of the runtime exception.
This commit is contained in:
parent
7e7951185b
commit
f282a9a7b9
@ -6,6 +6,7 @@
|
||||
|
||||
#include "cling/UserInterface/UserInterface.h"
|
||||
|
||||
#include "cling/Interpreter/RuntimeExceptions.h"
|
||||
#include "cling/Interpreter/StoredValueRef.h"
|
||||
#include "cling/MetaProcessor/MetaProcessor.h"
|
||||
#include "textinput/TextInput.h"
|
||||
@ -89,6 +90,9 @@ namespace cling {
|
||||
TI.SetPrompt(Prompt.c_str());
|
||||
|
||||
}
|
||||
catch(runtime::cling_null_deref_exception e) {
|
||||
// The diagnostic goes here:
|
||||
}
|
||||
catch(...) {
|
||||
llvm::errs() << "Exception occurred. Recovering...\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user