Include domain in errors (#3944)
This commit is contained in:
parent
722027ce2e
commit
4121fc4d56
1 changed files with 4 additions and 4 deletions
|
@ -49,13 +49,13 @@ impl UrlVerifier for VerifyUrlData {
|
||||||
..
|
..
|
||||||
} => anyhow!("Federation disabled"),
|
} => anyhow!("Federation disabled"),
|
||||||
LemmyError {
|
LemmyError {
|
||||||
error_type: LemmyErrorType::DomainBlocked(_),
|
error_type: LemmyErrorType::DomainBlocked(domain),
|
||||||
..
|
..
|
||||||
} => anyhow!("Domain is blocked"),
|
} => anyhow!("Domain {domain:?} is blocked"),
|
||||||
LemmyError {
|
LemmyError {
|
||||||
error_type: LemmyErrorType::DomainNotInAllowList(_),
|
error_type: LemmyErrorType::DomainNotInAllowList(domain),
|
||||||
..
|
..
|
||||||
} => anyhow!("Domain is not in allowlist"),
|
} => anyhow!("Domain {domain:?} is not in allowlist"),
|
||||||
_ => anyhow!("Failed validating apub id"),
|
_ => anyhow!("Failed validating apub id"),
|
||||||
})?;
|
})?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue