mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Eval
- Removed exception handlers in ::infixParse, thereby relying on the caller to set up appropriate handling.
This commit is contained in:
parent
d79c86ebb5
commit
d62c4428a9
1 changed files with 2 additions and 16 deletions
18
src/Eval.cpp
18
src/Eval.cpp
|
@ -382,22 +382,8 @@ void Eval::evaluatePostfixStack (
|
|||
void Eval::infixParse (
|
||||
std::vector <std::pair <std::string, Lexer::Type> >& infix) const
|
||||
{
|
||||
try
|
||||
{
|
||||
int i = 0;
|
||||
parseLogical (infix, i);
|
||||
}
|
||||
|
||||
// TODO Remove handlers?
|
||||
catch (const std::string& error)
|
||||
{
|
||||
std::cerr << error << "\n";
|
||||
}
|
||||
|
||||
catch (...)
|
||||
{
|
||||
std::cerr << "Unknown error.\n";
|
||||
}
|
||||
int i = 0;
|
||||
parseLogical (infix, i);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue