Remove duplicated information from output

This commit is contained in:
Thomas Zahner 2025-05-12 09:32:39 +02:00
parent a783ecc103
commit 54bbc080a9
2 changed files with 2 additions and 2 deletions

View file

@ -562,7 +562,7 @@ mod cli {
.failure()
.code(2)
.stdout(contains(
r#"[404] https://github.com/mre/idiomatic-rust-doesnt-exist-man | Rejected status code: 404 Not Found (this depends on your "accept" configuration)"#
r#"[404] https://github.com/mre/idiomatic-rust-doesnt-exist-man | Rejected status code (this depends on your "accept" configuration): Not Found"#
))
.stderr(contains(
"There were issues with GitHub URLs. You could try setting a GitHub token and running lychee again.",

View file

@ -146,7 +146,7 @@ pub enum ErrorKind {
InvalidStatusCode(u16),
/// The given status code was not accepted (this depends on the `accept` configuration)
#[error(r#"Rejected status code: {0} (this depends on your "accept" configuration)"#)]
#[error(r#"Rejected status code (this depends on your "accept" configuration)"#)]
RejectedStatusCode(StatusCode),
/// Regex error