diff --git a/server/src/main.rs b/server/src/main.rs index 456f3be..13fa7c6 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -236,7 +236,8 @@ async fn main() -> Result<(), Box> { match opt.command { Command::New { opts } => { if let Err(e) = initialize::init_wizard(&conf, opts) { - println!("{}: {}.", "creation failed".red(), e); + eprintln!("{}: {}.", "creation failed".red(), e); + std::process::exit(1); } }, Command::Uninstall { interface } => uninstall(&interface, &conf, opt.network)?,