You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that if the .env file does not exist, it is silently ignored and there is no way to check if the file was actually found. I think the dotenv class should keep a status value to indicate if the file was found & parsed or not. There should be a way to query the status, for example:
env.load_dotenv();
if(!env.good()) throw std::runtime_error(".env file was not found"):
The text was updated successfully, but these errors were encountered:
I think if added it should be more like env.file_found() some setups like docker compose, might pass all the settings through system enviroment, so you can have a valid config with no .env file
Thanks for a great library!
I noticed that if the .env file does not exist, it is silently ignored and there is no way to check if the file was actually found. I think the dotenv class should keep a status value to indicate if the file was found & parsed or not. There should be a way to query the status, for example:
The text was updated successfully, but these errors were encountered: