better error messages

This commit is contained in:
Nils Pukropp committed 2021-05-11 06:47:46 +02:00
1 parent 12e9243211
commit bac1a5c8b0
1 file changed
+4 -1
+4 -1
View File
@@ -76,7 +76,10 @@ impl YoutubeDL {
if !path.exists() {
// if not create
if let Err(why) = create_dir_all(&path) {
return Err(format!("Error while creating directories: {:?}", why));
return Err(format!(
"Error while creating directories {}: {:?}",
dl_path, why
));
}
}