Skip to content

Commit

Permalink
better error message when passing a heuristic to --search
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianPommerening committed Sep 27, 2024
1 parent f39b35b commit 996d3cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/search/command_line.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ static shared_ptr<SearchAlgorithm> parse_cmd_line_aux(const vector<string> &args
parser::DecoratedASTNodePtr decorated = parsed->decorate();
plugins::Any constructed = decorated->construct();
search_algorithm = plugins::any_cast<SearchPtr>(constructed);
} catch (const plugins::BadAnyCast &e) {
input_error("Could not interpret the argument of --search as a search algorithm.");
} catch (const utils::ContextError &e) {
input_error(e.get_message());
}
Expand Down

0 comments on commit 996d3cd

Please sign in to comment.