Skip to content

Commit

Permalink
add prints before exit
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarraga committed Sep 13, 2024
1 parent 2dedf6b commit d3cde89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/link_checker/check_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ def main(url_file, whitelist=None):

# Exit with error code if any non-200 status codes were found
if grouped:
print(f"Found {len(urls) - len(ok)} links with non-200 status codes.")
exit(1)
else:
print("All links are OK.")


if __name__ == '__main__':
Expand Down

0 comments on commit d3cde89

Please sign in to comment.