From fa8629300ff67622d61787fc918d00edf424c71b Mon Sep 17 00:00:00 2001 From: Swarnim Arun Date: Thu, 22 Dec 2022 03:46:08 +0530 Subject: [PATCH] chore: make the config setup messages consistent (#7560) --- src/config_files.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/config_files.rs b/src/config_files.rs index c8b144036..ae5768a1f 100644 --- a/src/config_files.rs +++ b/src/config_files.rs @@ -74,7 +74,16 @@ pub(crate) fn read_config_file( "y" | "" => match File::create(&config_path) { Ok(mut output) => match write!(output, "{}", config_file) { Ok(_) => { - println!("Config file created at: {}", config_path.to_string_lossy()) + let config_type = if is_env_config { + "Environment config" + } else { + "Config" + }; + println!( + "{} file created at: {}", + config_type, + config_path.to_string_lossy() + ); } Err(_) => { eprintln!(