Commit 0eaf1c52 authored by Rémy Coutable's avatar Rémy Coutable

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
parents 6c967c2b f2058177
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment