Return exception messages in scripts/lint-changelog-yaml
This commit is contained in:
parent
46be07d2c1
commit
f20581773a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue