mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-21 22:27:08 +00:00
Include domain in errors (#3944)
This commit is contained in:
parent
722027ce2e
commit
4121fc4d56
|
@ -49,13 +49,13 @@ impl UrlVerifier for VerifyUrlData {
|
|||
..
|
||||
} => anyhow!("Federation disabled"),
|
||||
LemmyError {
|
||||
error_type: LemmyErrorType::DomainBlocked(_),
|
||||
error_type: LemmyErrorType::DomainBlocked(domain),
|
||||
..
|
||||
} => anyhow!("Domain is blocked"),
|
||||
} => anyhow!("Domain {domain:?} is blocked"),
|
||||
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"),
|
||||
})?;
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue