diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-03-30 09:22:26 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-03-30 09:22:26 +0100 |
| commit | 6fb23fc567e0d73f06972aa88337ceac97a55a4e (patch) | |
| tree | 9de239b0c95a54edbf4aadee3ae77ef8ed51280b /src/main.rs | |
| parent | 9006aef87c1dd042dd140f71a09279e95f803227 (diff) | |
do not crash on error only print it
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index f390f31..5ade5c6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,7 +56,9 @@ async fn main() -> Result<()> { if tasks.len() > MAX { for task in tasks { - task.await.unwrap()? + if let Err(e) = task.await.unwrap() { + eprintln!("Error: {:?}", e); + } } tasks = Vec::new(); } |