a tiny bit of error handling

This commit is contained in:
leocth 2022-02-20 22:52:02 +08:00
parent 28d1267afa
commit 6b11613b99

View File

@ -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());