From 50ad807e5c9ef953ea88b496f67e8fc4aff249ca Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Thu, 13 Jan 2022 16:23:01 -0300 Subject: [PATCH] Show number of links with a possible error --- scripts/validate/links.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/validate/links.py b/scripts/validate/links.py index a64cdde3..b0adeca8 100644 --- a/scripts/validate/links.py +++ b/scripts/validate/links.py @@ -225,6 +225,11 @@ if __name__ == '__main__': errors = check_if_list_of_links_are_working(links) if errors: + + num_errors = len(errors) + print(f'Apparently {num_errors} links are not working properly. See in:') + for error_message in errors: print(error_message) + sys.exit(1)