Skip to content

Commit afa3907

Browse files
committed
fix: better error messages in download script
1 parent 8f126cb commit afa3907

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/download.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ fn main() {
7171
Ok(cmd_output) => {
7272
io::stdout()
7373
.write_all(&cmd_output.stdout)
74-
.expect("could not cmd stdout to pipe.");
74+
.expect("could not write cmd stdout to pipe.");
7575
io::stderr()
7676
.write_all(&cmd_output.stderr)
77-
.expect("could not cmd stderr to pipe.");
77+
.expect("could not write cmd stderr to pipe.");
7878
if !cmd_output.status.success() {
7979
exit_with_status(1, &tmp_file_path);
8080
}
@@ -92,7 +92,7 @@ fn main() {
9292
exit_with_status(0, &tmp_file_path);
9393
}
9494
Err(e) => {
95-
eprintln!("could not copy to input file: {}", e);
95+
eprintln!("could not copy downloaded input to input file: {}", e);
9696
exit_with_status(1, &tmp_file_path);
9797
}
9898
}

0 commit comments

Comments
 (0)