summaryrefslogtreecommitdiff
path: root/cli/args/mod.rs
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-01-22 10:27:14 +1100
committerGitHub <noreply@github.com>2024-01-22 00:27:14 +0100
commitb4990d1aa233db662cf22d7f872d45b3a947e0f6 (patch)
tree7009b20a5d05e5e2e2d3d9c79fdd8974347f69a3 /cli/args/mod.rs
parent983c745d4f385594638c42c107dca7d55afd0731 (diff)
refactor: don't error when `.env` is not present (#21879)
Uses similar format to when the latest version of std is implicitly being used. Closes #21788
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r--cli/args/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs
index 2657ed385..1fdd2f503 100644
--- a/cli/args/mod.rs
+++ b/cli/args/mod.rs
@@ -725,7 +725,11 @@ impl CliOptions {
if let Some(env_file_name) = &flags.env_file {
if (from_filename(env_file_name)).is_err() {
- bail!("Unable to load '{env_file_name}' environment variable file")
+ log::info!(
+ "{} The `--env` flag was used, but the dotenv file '{}' was not found.",
+ colors::yellow("Warning"),
+ env_file_name
+ );
}
}