allan2 / dotenvy

A well-maintained fork of the Rust dotenv crate
MIT License
625 stars 39 forks source link

Updated path not found error to be a bit more descriptive. #89

Closed JacobStephenson97 closed 6 months ago

JacobStephenson97 commented 6 months ago

Simply changes "path not found" to something slightly more descriptive, anything would work here.

I ran into the issues today while deploying a docker container just receiving the error:

Error: path not found

Caused by:
    path not found

Often dotenvy is being loaded at the beginning of projects, and this error isn't super descriptive, I took (far too long) realizing what path was not being found, as I wasn't copying over my .env to my runtime environment.

I think a change like this could help avoid any silly mistakes for others in the future, but if not no problem, just a suggestion!

allan2 commented 6 months ago

Thank you for your contribution :)