Commit cd46ecb7 authored by Houtan Bastani's avatar Houtan Bastani

preprocessor: add line info for division by zero exception. closes #1546

parent b92baacf
......@@ -2383,8 +2383,7 @@ ParsingDriver::add_divide(expr_t arg1, expr_t arg2)
}
catch (DataTree::DivisionByZeroException)
{
cerr << "...division by zero error encountred when reading model from .mod file" << endl;
exit(EXIT_FAILURE);
error("Division by zero error encountered when reading model from .mod 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