Skip to content

Commit

Permalink
Give more descriptive error BlockDirection::from_id is called with in…
Browse files Browse the repository at this point in the history
…valid id
  • Loading branch information
StackDoubleFlow committed Dec 18, 2023
1 parent 2d135c5 commit 750ed25
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 @@ -262,7 +262,7 @@ impl BlockDirection {
1 => BlockDirection::South,
2 => BlockDirection::West,
3 => BlockDirection::East,
_ => panic!("Invalid BlockDirection"),
_ => panic!("invalid BlockDirection with id {}", id),
}
}

Expand Down

0 comments on commit 750ed25

Please sign in to comment.