Skip to content

Commit 601677e

Browse files
committed
catch error
1 parent f9cb19d commit 601677e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stackslib/src/cli.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,8 @@ fn replay_naka_staging_block(db_path: &str, index_block_hash_hex: &str, conf: &C
874874
.unwrap_or_else(|e| panic!("DB error fetching {:?}: {:?}", block_id, e))
875875
.unwrap_or_else(|| panic!("No block found for id {:?}", block_id));
876876

877-
replay_block_nakamoto(&mut sortdb, &mut chainstate, &block, block_size).unwrap();
877+
replay_block_nakamoto(&mut sortdb, &mut chainstate, &block, block_size)
878+
.unwrap_or_else(|e| panic!("ERROR replaying block: {:?}", e));
878879
}
879880

880881
fn replay_block_nakamoto(

0 commit comments

Comments
 (0)