summaryrefslogtreecommitdiffstats
path: root/src/watch/upstream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch/upstream.rs')
-rw-r--r--src/watch/upstream.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/watch/upstream.rs b/src/watch/upstream.rs
index 2b89238..1af1488 100644
--- a/src/watch/upstream.rs
+++ b/src/watch/upstream.rs
@@ -6,7 +6,7 @@ use std::sync::{Condvar, Mutex};
use crate::config::Config;
use crate::db::{self, model::*, Db, Pkgbase};
-use crate::error::{Error, Result};
+use crate::error::{Error, Result, TransientCause};
use crate::git;
#[derive(Debug, Clone)]
@@ -185,7 +185,7 @@ fn run(
let cache = cfg.vcs_cache_path(&pin.url);
if !cache.exists() {
git::clone_bare(&pin.url, &cache)
- .map_err(|e| Error::transient(format!("vcs_cache clone {}: {e}", pin.url)))?;
+ .map_err(|e| Error::transient(TransientCause::Upstream(format!("vcs_cache clone {}: {e}", pin.url))))?;
} else {
let _ = git::fetch_and_head(&cache);
}