Skip to content

Commit

Permalink
clarify error message (foundry-rs#1794)
Browse files Browse the repository at this point in the history
  • Loading branch information
mds1 authored Jun 1, 2022
1 parent 076b8ba commit 9394550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anvil/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ Chain ID: {}
.get_block(BlockNumber::Number(fork_block_number.into()))
.await
.expect("Failed to get fork block")
.unwrap();
.unwrap_or_else(|| panic!("Failed to get fork block"));

env.block.number = fork_block_number.into();
fork_timestamp = Some(block.timestamp);
Expand Down

0 comments on commit 9394550

Please sign in to comment.