diff options
author | Rémy Coutable <remy@rymai.me> | 2017-12-23 17:16:38 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-12-23 17:16:38 +0300 |
commit | 0eaf1c524dd906caafa801cc03ad0e1c517d63f2 (patch) | |
tree | 24621f13ad3ce4cb2e1d1b89dfdb70f41e3773b5 | |
parent | 6c967c2b5b9760d0df6bcff70c059858abf971ec (diff) | |
parent | f20581773a12b5653ad43d9e908d756935dcf62c (diff) |
Merge branch '41359-lint-changelog-yaml-error-message-is-useless' into 'master'
Resolve "lint-changelog-yaml error message is useless"
Closes #41359
See merge request gitlab-org/gitlab-ce!16122
-rwxr-xr-x | scripts/lint-changelog-yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lint-changelog-yaml b/scripts/lint-changelog-yaml index cce5f1c7667..6553e02ffca 100755 --- a/scripts/lint-changelog-yaml +++ b/scripts/lint-changelog-yaml @@ -8,11 +8,13 @@ invalid_changelogs = Dir['changelogs/**/*'].reject do |changelog| begin YAML.load_file(changelog) - rescue + rescue => exception + puts exception end end if invalid_changelogs.any? + puts puts "Invalid changelogs found!\n" puts invalid_changelogs.sort exit 1 |