Skip to content

Commit

Permalink
Give more descriptive error BlockColorVariant::from_id is called with…
Browse files Browse the repository at this point in the history
… invalid id
  • Loading branch information
StackDoubleFlow committed Dec 18, 2023
1 parent eb89334 commit 2d135c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/blocks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl BlockColorVariant {
13 => Green,
14 => Red,
15 => Black,
_ => unreachable!(),
_ => panic!("invalid BlockColorVariant with id {}", id),
}
}
}
Expand Down

0 comments on commit 2d135c5

Please sign in to comment.