From afa39070de3ae6412c071b1deda403beaac32c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sp=C3=B6ttel?= <1682504+fspoettel@users.noreply.github.com> Date: Mon, 17 Oct 2022 15:18:15 +0200 Subject: [PATCH] fix: better error messages in download script --- src/bin/download.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/download.rs b/src/bin/download.rs index 0525596..0db8714 100644 --- a/src/bin/download.rs +++ b/src/bin/download.rs @@ -71,10 +71,10 @@ fn main() { Ok(cmd_output) => { io::stdout() .write_all(&cmd_output.stdout) - .expect("could not cmd stdout to pipe."); + .expect("could not write cmd stdout to pipe."); io::stderr() .write_all(&cmd_output.stderr) - .expect("could not cmd stderr to pipe."); + .expect("could not write cmd stderr to pipe."); if !cmd_output.status.success() { exit_with_status(1, &tmp_file_path); } @@ -92,7 +92,7 @@ fn main() { exit_with_status(0, &tmp_file_path); } Err(e) => { - eprintln!("could not copy to input file: {}", e); + eprintln!("could not copy downloaded input to input file: {}", e); exit_with_status(1, &tmp_file_path); } }