diff --git a/settlement-pipelines/src/bin/close_settlements.rs b/settlement-pipelines/src/bin/close_settlements.rs index a4b41d0d..f8e0b6bc 100644 --- a/settlement-pipelines/src/bin/close_settlements.rs +++ b/settlement-pipelines/src/bin/close_settlements.rs @@ -324,7 +324,15 @@ async fn main() -> anyhow::Result<()> { execution_data, Some(100_usize), ) - .await?; + .await + .map_or_else( + |e| { + let error_msg = format!("Failures on closing settlements: {:?}", e); + error!("{}", error_msg); + close_settlement_errors.push(error_msg); + }, + |v| v, + ); info!( "CloseSettlement instructions {close_settlement_execution_count} executed successfully of settlements [{}]", expired_settlements