From 6b11613b9974f66ae2c453b29be61411528ef959 Mon Sep 17 00:00:00 2001 From: leocth Date: Sun, 20 Feb 2022 22:52:02 +0800 Subject: [PATCH] a tiny bit of error handling --- theseus/examples/download-pack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theseus/examples/download-pack.rs b/theseus/examples/download-pack.rs index 084bb44c..3488fa1f 100644 --- a/theseus/examples/download-pack.rs +++ b/theseus/examples/download-pack.rs @@ -45,7 +45,7 @@ pub async fn main() { ); let start = Instant::now(); - fetch_modpack(&args.url, args.hash.as_deref(), &dest, ModpackSide::Client).await; + fetch_modpack(&args.url, args.hash.as_deref(), &dest, ModpackSide::Client).await.unwrap(); let end = start.elapsed(); println!("Download completed in {} seconds", end.as_secs_f32());