diff --git a/CHANGELOG.md b/CHANGELOG.md index cc73279..b4c969e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Fix panic when using SIGINT by @daimond113 + ### Changed - Allow publishing other packages even if an error occurred by @daimond113 diff --git a/src/main.rs b/src/main.rs index 793f307..bf3e540 100644 --- a/src/main.rs +++ b/src/main.rs @@ -191,7 +191,7 @@ async fn run() -> anyhow::Result<()> { .status() .expect("failed to run lune"); - std::process::exit(status.code().unwrap()); + std::process::exit(status.code().unwrap_or(1)); } let tracing_env_filter = EnvFilter::builder() @@ -315,7 +315,7 @@ async fn run() -> anyhow::Result<()> { .status() .expect("failed to run new version"); - std::process::exit(status.code().unwrap()); + std::process::exit(status.code().unwrap_or(1)); } #[cfg(feature = "version-management")]