We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c85975 commit 090f289Copy full SHA for 090f289
ui_test/src/parser.rs
@@ -69,9 +69,9 @@ impl Condition {
69
if c == "on-host" {
70
Ok(Condition::OnHost)
71
} else if let Some(bits) = c.strip_suffix("bit") {
72
- let bits: u8 = bits.parse().expect(
73
- "ignore/only filter ending in 'bit' must be of the form 'Nbit' for some integer N",
74
- );
+ let bits: u8 = bits.parse().map_err(|_err| {
+ eyre!("invalid ignore/only filter ending in 'bit': {c:?} is not a valid bitwdith")
+ })?;
75
Ok(Condition::Bitwidth(bits))
76
} else if let Some(target) = c.strip_prefix("target-") {
77
Ok(Condition::Target(target.to_owned()))
0 commit comments