summaryrefslogtreecommitdiffstats
path: root/src/watch/detect.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch/detect.rs')
-rw-r--r--src/watch/detect.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/watch/detect.rs b/src/watch/detect.rs
index 82539b8..3d2c955 100644
--- a/src/watch/detect.rs
+++ b/src/watch/detect.rs
@@ -1,6 +1,6 @@
use crate::config::Config;
use crate::db::{self, *};
-use crate::error::Result;
+use crate::error::{Missing, Result};
use crate::pkgver;
use crate::recipe::recipe_from_tree;
use crate::review::candidates::{NewCandidate, Upsert};
@@ -31,7 +31,7 @@ pub struct CheckReport {
pub fn check_pkgbase(cfg: &Config, db: &Db, name: &str) -> Result<CheckReport> {
let pb = get_pkgbase(db, name)?
- .ok_or_else(|| crate::error::Error::not_found(format!("pkgbase {name}")))?;
+ .ok_or_else(|| crate::error::Error::not_found(Missing::Pkgbase(name.to_string())))?;
let sub = db::get_subscription(db, name)?;
let paused = sub.as_ref().map(|s| s.state == SubscriptionState::Paused).unwrap_or(false);
if paused {