ignore 429's when linkcheck

This commit is contained in:
mark 2020-04-07 23:29:45 -05:00
parent 968b2a36a5
commit b9f91e5227

View File

@ -108,7 +108,9 @@ pub fn linkcheck(
is_real_error = true;
}
Reason::UnsuccessfulServerResponse(status) => {
if status.is_client_error() {
if status.as_u16() == 429 {
eprintln!("Received 429 (TOO_MANY_REQUESTS) for link `{}`", link.link.uri);
} else if status.is_client_error() {
is_real_error = true;
} else {
eprintln!("Unsuccessful server response for link `{}`", link.link.uri);