mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-08 21:00:56 +01:00
fix: don't panic on SIGINT exits
Unwrapping the process code caused panics on SIGINTs. Now we default to code 1 if there is none.
This commit is contained in:
parent
1bc5defd9c
commit
ef471069d8
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Add table
Reference in a new issue