浏览代码

Show number of links with a possible error

pull/3011/head
Matheus Felipe 2 年前
父节点
当前提交
50ad807e5c
找不到此签名对应的密钥 GPG 密钥 ID: AA785C523274872F
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      scripts/validate/links.py

+ 5
- 0
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)

正在加载...
取消
保存