diff --git a/lychee-bin/tests/cli.rs b/lychee-bin/tests/cli.rs index f17961f..b00390b 100644 --- a/lychee-bin/tests/cli.rs +++ b/lychee-bin/tests/cli.rs @@ -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.", diff --git a/lychee-lib/src/types/error.rs b/lychee-lib/src/types/error.rs index dd593ad..6a9673d 100644 --- a/lychee-lib/src/types/error.rs +++ b/lychee-lib/src/types/error.rs @@ -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