diff --git a/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs b/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs index fe86235494ea..017fa24daeae 100644 --- a/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs +++ b/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs @@ -152,7 +152,7 @@ fn do_pre_switch_check(command: &str, toplevel: &Path) -> Result<()> { Ok(Ok(status)) if status.success() => {} _ => { eprintln!("Pre-switch checks failed"); - die() + std::process::exit(1); } } @@ -174,7 +174,7 @@ fn do_install_bootloader(command: &str, toplevel: &Path) -> Result<()> { Ok(Ok(status)) if status.success() => {} _ => { eprintln!("Failed to install bootloader"); - die(); + std::process::exit(1); } }