From 96c6a63b0779f94b7bbb8fda4aead82d22f65ca3 Mon Sep 17 00:00:00 2001 From: LoveJesus Date: Tue, 6 Aug 2024 11:11:16 -0600 Subject: [PATCH] HALLELUJAH - v0.1.1 do not panic if .env_chirho is not found --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 661a987..e8cd32c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1919,7 +1919,7 @@ dependencies = [ [[package]] name = "rs_machine_input_chirho" -version = "0.1.0" +version = "0.1.1" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index 127a6d5..53964ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ # For God so loved the world, that He gave His only begotten Son, that all who believe in Him should not perish but have everlasting life [package] name = "rs_machine_input_chirho" -version = "0.1.0" +version = "0.1.1" edition = "2021" authors = ["Love Jesus "] description = "A command-line tool to synchronize computer resource information with a remote database" diff --git a/src/main.rs b/src/main.rs index 832e895..f51fb8a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,7 +46,10 @@ fn index() -> &'static str { #[launch] fn rocket_chirho() -> _ { - dotenvy::from_filename(".env_chirho").expect("Failed to load .env file"); + match dotenvy::from_filename(".env_chirho") { + Ok(_) => (), + Err(e_chirho) => eprintln!("Likely no .env_chirho file found {}", e_chirho), + }; let cli_chirho = CliChirho::parse();