Return exception messages in scripts/lint-changelog-yaml

This commit is contained in:
blackst0ne 2017-12-23 12:53:13 +11:00
parent 46be07d2c1
commit f20581773a
1 changed files with 3 additions and 1 deletions

View File

@ -8,11 +8,13 @@ invalid_changelogs = Dir['changelogs/**/*'].reject do |changelog|
begin begin
YAML.load_file(changelog) YAML.load_file(changelog)
rescue rescue => exception
puts exception
end end
end end
if invalid_changelogs.any? if invalid_changelogs.any?
puts
puts "Invalid changelogs found!\n" puts "Invalid changelogs found!\n"
puts invalid_changelogs.sort puts invalid_changelogs.sort
exit 1 exit 1