Skip to content

Commit

Permalink
Simplify attribute macro error message
Browse files Browse the repository at this point in the history
The custom message is redundant now that `dotenvy::Error` includes more info.
  • Loading branch information
allan2 committed Oct 5, 2024
1 parent cab1d68 commit 9a9dd35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotenvy-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9a9dd35

Please sign in to comment.