Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sgbalogh committed Jul 20, 2024
1 parent ed2ada8 commit 3c222a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,11 @@ impl Builder {

if self.config.tick.as_nanos() % Duration::from_millis(1).as_nanos() != 0 {
// Tick duration is used for tokio::time::sleep, which requires millisecond resolution.
panic!("Tick duration resolution is in milliseconds, but value provided would require higher.")
panic!("Tick duration resolution is in milliseconds, but value provided would require higher: {:?}.", self.config.tick)
}

if self.config.tick.is_zero() {
panic!("Tick duration of zero is not supported.")
}

let world = World::new(
Expand Down

0 comments on commit 3c222a6

Please sign in to comment.