Commit dd56acaa authored by kraus's avatar kraus
Browse files

make OpalParser aware of Ippl::assertion exception

parent 578a6c27
......@@ -590,6 +590,11 @@ void OpalParser::run() const {
*gmsg << " ";
stat->print();
*gmsg << " Sorry, virtual memory exhausted.\n" << endl;
} catch(assertion &ex) {
ERRORMSG("\n*** Runtime-error ******************\n");
ERRORMSG(ex.what());
ERRORMSG("\n************************************\n" << endl);
abort();
} catch(exception &ex) {
*gmsg << "\n*** Error:\n";
stat->printWhere(false);
......@@ -620,4 +625,4 @@ void OpalParser::run(TokenStream *is) const {
void OpalParser::stop() const {
stopFlag = true;
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment