Skip to content

Commit

Permalink
better err
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Apr 25, 2024
1 parent 325814f commit 6f59fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ impl EGraph {
run_report: &mut RunReport,
search_results: &mut HashMap<Symbol, SearchResult>,
) {
let rules = self.rulesets.get(&ruleset).unwrap();
let rules = self.rulesets.get(&ruleset).unwrap_or_else(|| panic!("Unknown ruleset {}", ruleset));
match rules {
Ruleset::Rules(_ruleset_name, rule_names) => {
let copy_rules = rule_names.clone();
Expand Down

0 comments on commit 6f59fe4

Please sign in to comment.