diff --git a/support/check_yaml.rb b/support/check_yaml.rb index b2a084a7..c548e796 100644 --- a/support/check_yaml.rb +++ b/support/check_yaml.rb @@ -1,6 +1,7 @@ require 'yaml' path = File.expand_path('../members', File.dirname(__FILE__)) +code = 0 Dir.glob(path + '/*.yaml') do |f| begin @@ -10,5 +11,8 @@ Dir.glob(path + '/*.yaml') do |f| rescue Exception => e puts "Error in file #{f}:" puts e.message + code = 1 end end + +exit code