diff --git a/lychee-bin/src/stats.rs b/lychee-bin/src/stats.rs index 91e623e..2a91b52 100644 --- a/lychee-bin/src/stats.rs +++ b/lychee-bin/src/stats.rs @@ -75,7 +75,7 @@ impl ResponseStats { #[inline] pub(crate) const fn is_success(&self) -> bool { - self.total == self.successful + self.excludes + self.total == self.successful + self.excludes + self.unsupported } #[inline] diff --git a/lychee-bin/tests/cli.rs b/lychee-bin/tests/cli.rs index dedcff9..8814a45 100644 --- a/lychee-bin/tests/cli.rs +++ b/lychee-bin/tests/cli.rs @@ -212,7 +212,7 @@ mod cli { .env_clear() .assert() .success() - .stdout(contains("2 Total")) + .stdout(contains("3 Total")) .stdout(contains("1 OK")) .stdout(contains("1 Excluded")); }