mirror of
https://github.com/narrrl/ytd-rs.git
synced 2026-11-03 16:41:27 +01:00
stdout for error nice
This commit is contained in:
1 parent
3269a32a46
commit
41f2266c4d
1 file changed
+2
-3
+2
-3
@@ -6,7 +6,6 @@ use std::{
|
||||
fs::{canonicalize, create_dir_all},
|
||||
io::Error,
|
||||
path::PathBuf,
|
||||
process::ExitStatus,
|
||||
};
|
||||
use std::{path::Path, process::Command};
|
||||
|
||||
@@ -107,7 +106,7 @@ impl YoutubeDL {
|
||||
} else {
|
||||
Err(format!(
|
||||
"Error downloading video: {:?}",
|
||||
output.stderr.as_slice()
|
||||
output.stdout.as_slice()
|
||||
))
|
||||
}
|
||||
}
|
||||
@@ -132,7 +131,7 @@ impl YoutubeDL {
|
||||
|
||||
cmd.arg(&self.link);
|
||||
|
||||
let mut pr = match cmd.spawn() {
|
||||
let pr = match cmd.spawn() {
|
||||
Err(why) => {
|
||||
return Err(why);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user