fix: improve error handling in check_all function for better clarity

This commit is contained in:
monosans
2025-08-04 16:38:49 +03:00
parent 821c0b5251
commit dc13044ca3
+8 -5
View File
@@ -78,11 +78,14 @@ pub async fn check_all(
}
while let Some(res) = join_set.join_next().await {
if let Err(e) = res {
tracing::error!(
"proxy checking task panicked or was cancelled: {}",
e
);
match res {
Ok(()) => {}
Err(e) if e.is_panic() => {
tracing::error!("proxy checking task panicked: {}", e);
}
Err(e) => {
return Err(e.into());
}
}
}