From b62683f96eac5c08f6b54ec437240c64c4122c16 Mon Sep 17 00:00:00 2001 From: Matheus Felipe <50463866+matheusfelipeog@users.noreply.github.com> Date: Thu, 13 Jan 2022 16:33:03 -0300 Subject: [PATCH] Show one duplicate link per line --- scripts/validate/links.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/validate/links.py b/scripts/validate/links.py index b0adeca8..efa918ad 100644 --- a/scripts/validate/links.py +++ b/scripts/validate/links.py @@ -216,7 +216,10 @@ if __name__ == '__main__': has_duplicate_link, duplicates_links = check_duplicate_links(links) if has_duplicate_link: - print(f'Found duplicate links: {duplicates_links}') + print(f'Found duplicate links:') + for duplicate_link in duplicates_links: + print(duplicate_link) + sys.exit(1) else: print('No duplicate links.')