We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13b3ecc commit 22878c8Copy full SHA for 22878c8
swap/src/cli/api/request.rs
@@ -459,8 +459,12 @@ pub async fn get_swap_infos_all(context: Arc<Context>) -> Result<Vec<GetSwapInfo
459
let mut swap_infos = Vec::new();
460
461
for (swap_id, _) in swap_ids {
462
- let swap_info = get_swap_info(GetSwapInfoArgs { swap_id }, context.clone()).await?;
463
- swap_infos.push(swap_info);
+ match get_swap_info(GetSwapInfoArgs { swap_id }, context.clone()).await {
+ Ok(swap_info) => swap_infos.push(swap_info),
464
+ Err(error) => {
465
+ tracing::error!(%swap_id, %error, "Failed to get swap info");
466
+ }
467
468
}
469
470
Ok(swap_infos)
0 commit comments