make stderr readable

This commit is contained in:
Nils Pukropp committed 2021-05-11 08:25:38 +02:00
1 parent 22ca22198c
commit 82b5c6ec9f
1 file changed
+2 -3
+2 -3
View File
@@ -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)
))
}
}