This commit is contained in:
Nils Pukropp committed 2021-05-10 16:41:50 +02:00
1 parent c33574f7f9
commit c1ac507152
1 file changed
+3 -1
+3 -1
View File
@@ -122,7 +122,9 @@ impl YoutubeDL {
cmd.arg(&self.link);
let mut pr = match cmd.spawn() {
Err(why) => panic!("couldn't spawn youtube-dl: {:?}", why),
Err(why) => {
return Err(why);
}
Ok(process) => process,
};
pr.wait()