File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,7 +214,10 @@ async fn main() -> Result<()> {
214214 if let Some ( root) = find_project_root ( ) {
215215 dotenv:: from_path ( root. join ( args. env_file ) ) . ok ( ) ;
216216 } else {
217- eprintln ! ( "Warning: Could not find project root. {} file not loaded." , args. env_file) ;
217+ // Try to load the env file in case it's present
218+ if dotenv:: from_path ( args. env_file . clone ( ) ) . is_err ( ) {
219+ eprintln ! ( "Warning: Could not find project root. {} file not loaded." , args. env_file) ;
220+ }
218221 }
219222
220223 update_fdg_config ( ) . await ?;
Original file line number Diff line number Diff line change @@ -157,7 +157,10 @@ async fn main() -> Result<()> {
157157 if let Some ( root) = find_project_root ( ) {
158158 dotenv:: from_path ( root. join ( args. env_file ) ) . ok ( ) ;
159159 } else {
160- eprintln ! ( "Warning: Could not find project root. {} file not loaded." , args. env_file) ;
160+ // Try to load the env file in case it's present
161+ if dotenv:: from_path ( args. env_file . clone ( ) ) . is_err ( ) {
162+ eprintln ! ( "Warning: Could not find project root. {} file not loaded." , args. env_file) ;
163+ }
161164 }
162165
163166 update_l2oo_config ( ) . await ?;
You can’t perform that action at this time.
0 commit comments