flutter_dotenv icon indicating copy to clipboard operation
flutter_dotenv copied to clipboard

Throw errors instead of logging to stderr

Open Nathan-Heller opened this issue 5 years ago • 1 comments

In a number of instances, the DotEnv package logs to stderr when an error occurs, instead of throwing an ecxeption

This seems to at least partially stem from the original repo. I am not sure this issue still applies; I know it does not for the project I am utilizing this package in.

It seems more valuable to have this package throw errors that the application can handle directly, instead of needing to react to side-effects. This would make it easier to find the source of issues, and/or give the application a better chance to recover.

Thanks to @java-james for the swift response to my email and opening up the issue tracker 👍

Nathan-Heller avatar Feb 20 '20 23:02 Nathan-Heller

@Nathan-Heller I think this will be useful to consumers and will look at implementing this as a breaking change.

java-james avatar Jan 14 '21 04:01 java-james