Skip to content

Commit

Permalink
Improve error messages that show up when single-search parser is used…
Browse files Browse the repository at this point in the history
… for anytime search.
  • Loading branch information
jendrikseipp committed Sep 12, 2020
1 parent 8385163 commit c415a62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions downward/scripts/single-search-parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ def _get_states_pattern(attribute, name):
def check_single_search(content, props):
if "Cumulative statistics:" in content:
props.add_unexplained_error(
"single-search parser can't be used for iterated search"
"Single-search parser can't be used for iterated search."
)
for _, pattern, _ in PATTERNS:
results = re.findall(pattern, content)
if len(results) > 1:
props.add_unexplained_error(
"single-search parser can't be used for anytime planner"
f"Found multiple occurences of {pattern} in logfile. "
f"Single-search parser can't be used for anytime planner."
)


Expand Down

0 comments on commit c415a62

Please sign in to comment.