node: Fix some error messages
A "block" policy doesn't necessarily mean an active block.
This commit is contained in:
parent
992878fab4
commit
8c92282578
|
|
@ -23,7 +23,7 @@ pub enum NamespacesError {
|
||||||
#[source]
|
#[source]
|
||||||
err: Error,
|
err: Error,
|
||||||
},
|
},
|
||||||
#[error("The policy for {rid} is to block fetching")]
|
#[error("Cannot fetch {rid} as it is not tracked")]
|
||||||
BlockedPolicy { rid: Id },
|
BlockedPolicy { rid: Id },
|
||||||
#[error("Failed to get tracking nodes for {rid}")]
|
#[error("Failed to get tracking nodes for {rid}")]
|
||||||
FailedNodes {
|
FailedNodes {
|
||||||
|
|
@ -105,7 +105,7 @@ impl Config {
|
||||||
.map_err(|err| FailedPolicy { rid: *rid, err })?;
|
.map_err(|err| FailedPolicy { rid: *rid, err })?;
|
||||||
match entry.policy {
|
match entry.policy {
|
||||||
Policy::Block => {
|
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 })
|
Err(NamespacesError::BlockedPolicy { rid: *rid })
|
||||||
}
|
}
|
||||||
Policy::Track => match entry.scope {
|
Policy::Track => match entry.scope {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue