Skip to content

Commit

Permalink
fix(usage): Provide more context in panic
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 27, 2023
1 parent 43591bc commit e02644b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_builder/src/output/usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ impl<'cmd> Usage<'cmd> {
required_groups.insert(elem);
required_groups_members.extend(group_members);
} else {
debug_assert!(self.cmd.find(req).is_some());
debug_assert!(self.cmd.find(req).is_some(), "`{req}` must exist");
}
}

Expand Down

0 comments on commit e02644b

Please sign in to comment.