Return exception messages in scripts/lint-changelog-yaml
This commit is contained in:
parent
46be07d2c1
commit
f20581773a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue