mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-10 06:54:12 +00:00
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"),
|
||||
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