summaryrefslogtreecommitdiff
path: root/scripts/lint-changelog-yaml
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-12-23 12:53:13 +1100
committerblackst0ne <blackst0ne.ru@gmail.com>2017-12-23 12:53:13 +1100
commitf20581773a12b5653ad43d9e908d756935dcf62c (patch)
tree942f019c71ad2a244c4e63f0837b473efbd81455 /scripts/lint-changelog-yaml
parent46be07d2c1da93cffd59fb03036e357c04ff6f3b (diff)
downloadgitlab-ce-f20581773a12b5653ad43d9e908d756935dcf62c.tar.gz
Return exception messages in scripts/lint-changelog-yaml41359-lint-changelog-yaml-error-message-is-useless
Diffstat (limited to 'scripts/lint-changelog-yaml')
-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