Skip to content

Commit d6acfe4

Browse files
committed
changed the error message on bacon.toml existing to allow opening
So that it's still always possible to do nvim $(bacon --init)
1 parent abca68a commit d6acfe4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cli.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use {
22
crate::*,
3-
anyhow::anyhow,
43
crossterm::{
54
self, cursor,
65
terminal::{EnterAlternateScreen, LeaveAlternateScreen},
@@ -68,7 +67,7 @@ pub fn run() -> anyhow::Result<()> {
6867
fs::write(&package_config_path, DEFAULT_PACKAGE_CONFIG)?;
6968
eprintln!("bacon project configuration file written.");
7069
} else {
71-
return Err(anyhow!("{} already exists, refusing to overwrite", package_config_path.display()).into());
70+
eprintln!("bacon configuration file already exists.");
7271
}
7372
println!("{}", package_config_path.to_string_lossy());
7473
return Ok(());

0 commit comments

Comments
 (0)