Improved error messages
This commit is contained in:
parent
7f9d450e05
commit
0e61d31f43
1 changed files with 1 additions and 2 deletions
|
@ -69,8 +69,7 @@ fn main() -> Result<(), std::io::Error> {
|
|||
|
||||
resp.copy_to(&mut file).expect("failed to write file");
|
||||
} else {
|
||||
println!("FAIL!");
|
||||
std::process::exit(1);
|
||||
err_and_exit(format!("Request was unsuccessful...did you request from the correct repo?\nStatus is: \"{}\"", resp.status()), 0)
|
||||
}
|
||||
|
||||
let spltdirname: Vec<&str> = pkgname.split(".").collect();
|
||||
|
|
Loading…
Reference in a new issue