From 7f9d450e057b7ce5a43bcdad56fb69bd468e0d5d Mon Sep 17 00:00:00 2001 From: Skye Bleed Date: Thu, 5 Sep 2019 19:17:59 -0500 Subject: [PATCH 1/2] Update README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b226dcb..28e2e08 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,13 @@ Extremely in progress This has hardly been worked on and is essentially useless at its current state. Please don't use this unless you plan on developing it. ### TODO -[ ] Parse cmdline options well, including parsing the package name from the package repo - -[ ] Make a KO +[\*] Parse cmdline options well, including parsing the package name from the package repo [ ] Correctly download from several repos -[ ] Unpack tarballs of various types +[\*] Unpack tarballs of various types + +[ ] Correctly install binaries in system [ ] More, probably From 0e61d31f439506a67874c140191dfc3ad9152c4b Mon Sep 17 00:00:00 2001 From: Skye Bleed Date: Thu, 5 Sep 2019 19:22:52 -0500 Subject: [PATCH 2/2] Improved error messages --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0c67923..d119633 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();