diff --git a/src/main.rs b/src/main.rs index 39c5e4c..fedd175 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,7 @@ const ILIAS_URL: &str = "https://ilias.studium.kit.edu/"; #[tokio::main] async fn main() { let mut opt = Opt::from_args(); - opt.output = fs::canonicalize(opt.output); // use long paths on Windows + opt.output = fs::canonicalize(opt.output).await.expect("failed to canonicalize directory"); // use long paths on Windows create_dir(&opt.output).await.expect("failed to create output directory"); // need this because task scheduling is WIP // (would wait forever on paniced task)