node: Fix some error messages

A "block" policy doesn't necessarily mean an active block.
This commit is contained in:
Alexis Sellier 2023-04-12 14:32:06 +02:00
parent 992878fab4
commit 8c92282578
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ pub enum NamespacesError {
#[source]
err: Error,
},
#[error("The policy for {rid} is to block fetching")]
#[error("Cannot fetch {rid} as it is not tracked")]
BlockedPolicy { rid: Id },
#[error("Failed to get tracking nodes for {rid}")]
FailedNodes {
@ -105,7 +105,7 @@ impl Config {
.map_err(|err| FailedPolicy { rid: *rid, err })?;
match entry.policy {
Policy::Block => {
error!(target: "service", "Attempted to fetch blocked repo {rid}");
error!(target: "service", "Attempted to fetch untracked repo {rid}");
Err(NamespacesError::BlockedPolicy { rid: *rid })
}
Policy::Track => match entry.scope {