mirror of
https://github.com/narrrl/ytd-rs.git
synced 2026-11-04 00:47:02 +01:00
better error messages
This commit is contained in:
1 parent
12e9243211
commit
bac1a5c8b0
1 file changed
+4
-1
+4
-1
@@ -76,7 +76,10 @@ impl YoutubeDL {
|
|||||||
if !path.exists() {
|
if !path.exists() {
|
||||||
// if not create
|
// if not create
|
||||||
if let Err(why) = create_dir_all(&path) {
|
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
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user