From 0223f24fa5daf68bd1d1a4eca95ca1f77a9717ff Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Sat, 7 Mar 2020 10:16:29 +0100 Subject: [PATCH] do not ignore pipeline errors --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index d4f717c..314f1f7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -180,10 +180,10 @@ async fn transcode(src: &Path, dest: &Path) -> Result<(), Error> { } }) .take_while(|e| { - if let Ok(true) = e { - futures::future::ready(true) - } else { + if let Ok(false) = e { futures::future::ready(false) + } else { + futures::future::ready(true) } }) .try_for_each(|_| futures::future::ready(Ok(())))