Skip to content

Commit

Permalink
fix: error management
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Jun 7, 2023
1 parent a4d1028 commit f0274f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/chainhook-cli/src/scan/stacks.rs
Expand Up @@ -166,10 +166,10 @@ pub async fn scan_stacks_chainstate_via_rocksdb_using_predicate(
Ok(Some(block)) => block,
Ok(None) => match get_stacks_block_at_block_height(cursor, false, 3, stacks_db_conn) {
Ok(Some(block)) => block,
Ok(None) => unimplemented!(),
Err(_) => unimplemented!(),
Ok(None) => return Err(format!("Unable to retrieve block {cursor}")),
Err(e) => return Err(format!("Unable to retrieve block {cursor}: {e}")),
},
Err(_) => unimplemented!(),
Err(e) => return Err(format!("Unable to retrieve block {cursor}: {e}")),
};
last_block_scanned = block_data.block_identifier.clone();
blocks_scanned += 1;
Expand Down

0 comments on commit f0274f5

Please sign in to comment.