forked from extern/nushell
make message more readable (#4646)
* make message more readable * monsieur clippy
This commit is contained in:
parent
c6a3066103
commit
2b377391c2
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user