mirror of
https://github.com/narrrl/ytd-rs.git
synced 2026-11-04 00:47:02 +01:00
make stderr readable
This commit is contained in:
1 parent
22ca22198c
commit
82b5c6ec9f
1 file changed
+2
-3
+2
-3
@@ -108,9 +108,8 @@ impl YoutubeDL {
|
||||
Ok(&self.path)
|
||||
} else {
|
||||
Err(format!(
|
||||
"Error downloading video: {:?}{:?}",
|
||||
output.stdout.as_slice(),
|
||||
output.stderr.as_slice()
|
||||
"Error downloading video: {}",
|
||||
String::from_utf8_lossy(&output.stderr)
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user