diff --git a/ci/release.py b/ci/release.py index 94395e84..624b2132 100755 --- a/ci/release.py +++ b/ci/release.py @@ -64,8 +64,7 @@ def _release(project: _Project) -> None: body = (_TOP_LEVEL / "RELEASE_NOTES.md").read_text() message = f"{title}{linesep}{linesep}{body}" - arts = (normcase(p) for p in _walk(_TOP_LEVEL / "arts")) - attachments = chain.from_iterable(zip(repeat("--attach"), arts)) + attachments = (normcase(p) for p in _walk(_TOP_LEVEL / "arts")) check_call( ( diff --git a/src/main.rs b/src/main.rs index 4624215f..f026eecd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,17 +72,11 @@ async fn consume(stream: impl Stream> + Send) -> Result<( int, ); let mut out = pin!(out); - loop { - match out.next().await { - None | Some(Die::Eof) => break, - Some(Die::Interrupt) => return Err(Die::Interrupt), - Some(e) => { - eprintln!("{}", Colour::Red.paint(format!("{e}"))); - return Err(e); - } - } + match out.next().await { + None | Some(Die::Eof) => Ok(()), + Some(Die::Interrupt) => Err(Die::Interrupt), + Some(e) => Err(e), } - Ok(()) } async fn run(threads: usize) -> Result<(), Die> {