summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-12-23 14:16:38 +0000
committerRémy Coutable <remy@rymai.me>2017-12-23 14:16:38 +0000
commit0eaf1c524dd906caafa801cc03ad0e1c517d63f2 (patch)
tree24621f13ad3ce4cb2e1d1b89dfdb70f41e3773b5
parent6c967c2b5b9760d0df6bcff70c059858abf971ec (diff)
parentf20581773a12b5653ad43d9e908d756935dcf62c (diff)
downloadgitlab-ce-0eaf1c524dd906caafa801cc03ad0e1c517d63f2.tar.gz
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-xscripts/lint-changelog-yaml4
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