diff options
| author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-12-23 12:53:13 +1100 |
|---|---|---|
| committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-12-23 12:53:13 +1100 |
| commit | f20581773a12b5653ad43d9e908d756935dcf62c (patch) | |
| tree | 942f019c71ad2a244c4e63f0837b473efbd81455 /scripts/lint-changelog-yaml | |
| parent | 46be07d2c1da93cffd59fb03036e357c04ff6f3b (diff) | |
| download | gitlab-ce-f20581773a12b5653ad43d9e908d756935dcf62c.tar.gz | |
Return exception messages in scripts/lint-changelog-yaml41359-lint-changelog-yaml-error-message-is-useless
Diffstat (limited to 'scripts/lint-changelog-yaml')
| -rwxr-xr-x | scripts/lint-changelog-yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lint-changelog-yaml b/scripts/lint-changelog-yaml index cce5f1c7667..6553e02ffca 100755 --- a/scripts/lint-changelog-yaml +++ b/scripts/lint-changelog-yaml @@ -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 |
