make message more readable (#4646)

* make message more readable

* monsieur clippy
This commit is contained in:
Darren Schroeder 2022-02-25 12:58:47 -06:00 committed by GitHub
parent c6a3066103
commit 2b377391c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,8 +75,8 @@ pub(crate) fn read_config_file(
config_path.push(CONFIG_FILE);
if !config_path.exists() {
println!("No config file found at {:?}", config_path);
println!("Would you like to create one (Y/n): ");
println!("No config file found at {}", config_path.to_string_lossy());
println!("Would you like to create one with defaults (Y/n): ");
let mut answer = String::new();
std::io::stdin()
@ -88,7 +88,7 @@ pub(crate) fn read_config_file(
let mut output = File::create(&config_path).expect("Unable to create file");
let config_file = include_str!("default_config.nu");
write!(output, "{}", config_file).expect("Unable to write to config file");
println!("Config file created {:?}", config_path);
println!("Config file created at: {}", config_path.to_string_lossy());
}
_ => {
println!("Continuing without config file");