aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/dependency_resolver/pool_builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/dependency_resolver/pool_builder.rs')
-rw-r--r--crates/shirabe/src/dependency_resolver/pool_builder.rs15
1 files changed, 6 insertions, 9 deletions
diff --git a/crates/shirabe/src/dependency_resolver/pool_builder.rs b/crates/shirabe/src/dependency_resolver/pool_builder.rs
index 35699a90..f5143897 100644
--- a/crates/shirabe/src/dependency_resolver/pool_builder.rs
+++ b/crates/shirabe/src/dependency_resolver/pool_builder.rs
@@ -147,11 +147,9 @@ impl PoolBuilder {
self.warn_about_non_matching_update_allow_list(request)?;
if request.get_locked_repository().is_none() {
- return Err(LogicException {
- message: "No lock repo present and yet a partial update was requested."
- .to_string(),
- code: 0,
- }
+ return Err(LogicException::new(
+ "No lock repo present and yet a partial update was requested.".to_string(),
+ )
.into());
}
@@ -798,10 +796,9 @@ impl PoolBuilder {
fn warn_about_non_matching_update_allow_list(&self, request: &Request) -> anyhow::Result<()> {
if request.get_locked_repository().is_none() {
- return Err(LogicException {
- message: "No lock repo present and yet a partial update was requested.".to_string(),
- code: 0,
- }
+ return Err(LogicException::new(
+ "No lock repo present and yet a partial update was requested.".to_string(),
+ )
.into());
}