Commit 8a26748d authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix-exception-handler-in-danger-changelog' into 'master'

Fix exception handler in changelog Dangerfile

See merge request gitlab-org/gitlab!35656
parents 4f9209f4 c8690696
...@@ -50,7 +50,7 @@ rescue Psych::SyntaxError, Psych::DisallowedClass, Psych::BadAlias ...@@ -50,7 +50,7 @@ rescue Psych::SyntaxError, Psych::DisallowedClass, Psych::BadAlias
# YAML could not be parsed, fail the build. # YAML could not be parsed, fail the build.
fail "#{gitlab.html_link(path)} isn't valid YAML! #{SEE_DOC}" fail "#{gitlab.html_link(path)} isn't valid YAML! #{SEE_DOC}"
rescue StandardError => e rescue StandardError => e
warn "There was a problem trying to check the Changelog. Exception: #{e.name} - #{e.message}" warn "There was a problem trying to check the Changelog. Exception: #{e.class.name} - #{e.message}"
end end
def check_changelog_path(path) def check_changelog_path(path)
......
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