From 9a9dd354febaaae9e0ac30468d28c2d46f034b9f Mon Sep 17 00:00:00 2001 From: Allan <6740989+allan2@users.noreply.github.com> Date: Sat, 5 Oct 2024 09:54:07 -0400 Subject: [PATCH] Simplify attribute macro error message The custom message is redundant now that `dotenvy::Error` includes more info. --- dotenvy-macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotenvy-macros/src/lib.rs b/dotenvy-macros/src/lib.rs index bf4d9047..4d8c5bca 100644 --- a/dotenvy-macros/src/lib.rs +++ b/dotenvy-macros/src/lib.rs @@ -38,7 +38,7 @@ pub fn load(attr: TokenStream, item: TokenStream) -> TokenStream { match (io_err.kind(), #required) { (io::ErrorKind::NotFound, false) => (), _ => { - eprintln!("Failed to load env file from path '{}': {e}", #path); + eprintln!("{e}"); process::exit(1); } }