Add proper handling of the runtime exception.

This commit is contained in:
Vassil Vassilev 2013-09-05 16:43:20 +02:00 committed by sftnight
parent 7e7951185b
commit f282a9a7b9

View File

@ -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";
}