Skip to content

Commit

Permalink
fix 52bca0f
Browse files Browse the repository at this point in the history
  • Loading branch information
alan23273850 committed Aug 25, 2024
1 parent f5ce489 commit 02466c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/timbuk_parser-nobison.cc
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ AUTOQ::Automata<Symbol> AUTOQ::Parsing::TimbukParser<Symbol>::ReadAutomaton(cons
constants[lhs] = ComplexParser(rhs).getComplex();
} else {
AUTOQ_ERROR("[ERROR] The constant \"" + lhs + "\" is already defined.");
exit(1);
throw std::runtime_error(AUTOQ_LOG_PREFIX + "[ERROR] The constant \"" + lhs + "\" is already defined.");
}
}
}
Expand All @@ -982,7 +982,7 @@ AUTOQ::Automata<Symbol> AUTOQ::Parsing::TimbukParser<Symbol>::ReadAutomaton(cons
predicates[lhs] = rhs;
} else {
AUTOQ_ERROR("[ERROR] The predicate \"" + lhs + "\" is already defined.");
exit(1);
throw std::runtime_error(AUTOQ_LOG_PREFIX + "[ERROR] The predicate \"" + lhs + "\" is already defined.");
}
}
}
Expand Down

0 comments on commit 02466c4

Please sign in to comment.