mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-20 03:43:47 +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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Fixed
|
||||||
|
- Fix panic when using SIGINT by @daimond113
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Allow publishing other packages even if an error occurred by @daimond113
|
- Allow publishing other packages even if an error occurred by @daimond113
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,7 @@ async fn run() -> anyhow::Result<()> {
|
||||||
.status()
|
.status()
|
||||||
.expect("failed to run lune");
|
.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()
|
let tracing_env_filter = EnvFilter::builder()
|
||||||
|
@ -315,7 +315,7 @@ async fn run() -> anyhow::Result<()> {
|
||||||
.status()
|
.status()
|
||||||
.expect("failed to run new version");
|
.expect("failed to run new version");
|
||||||
|
|
||||||
std::process::exit(status.code().unwrap());
|
std::process::exit(status.code().unwrap_or(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "version-management")]
|
#[cfg(feature = "version-management")]
|
||||||
|
|
Loading…
Add table
Reference in a new issue