fix: better error messages in download script
This commit is contained in:
parent
8f126cb448
commit
afa39070de
1 changed files with 3 additions and 3 deletions
|
@ -71,10 +71,10 @@ fn main() {
|
||||||
Ok(cmd_output) => {
|
Ok(cmd_output) => {
|
||||||
io::stdout()
|
io::stdout()
|
||||||
.write_all(&cmd_output.stdout)
|
.write_all(&cmd_output.stdout)
|
||||||
.expect("could not cmd stdout to pipe.");
|
.expect("could not write cmd stdout to pipe.");
|
||||||
io::stderr()
|
io::stderr()
|
||||||
.write_all(&cmd_output.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() {
|
if !cmd_output.status.success() {
|
||||||
exit_with_status(1, &tmp_file_path);
|
exit_with_status(1, &tmp_file_path);
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ fn main() {
|
||||||
exit_with_status(0, &tmp_file_path);
|
exit_with_status(0, &tmp_file_path);
|
||||||
}
|
}
|
||||||
Err(e) => {
|
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);
|
exit_with_status(1, &tmp_file_path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue