chore: make the config setup messages consistent (#7560)

This commit is contained in:
Swarnim Arun 2022-12-22 03:46:08 +05:30 committed by GitHub
parent 37dc226996
commit fa8629300f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!(