X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/7e897ab540f46c3850455111d70b3cbef654c557..6257d0524bfb1247f04538b9fde2a7ddb7b15d2a:/lib/nos_oignons.rb diff --git a/lib/nos_oignons.rb b/lib/nos_oignons.rb index ff387d1..2a5d414 100644 --- a/lib/nos_oignons.rb +++ b/lib/nos_oignons.rb @@ -64,7 +64,7 @@ module NosOignons begin # Use empty ref to get the index NosOignons::Member.read_from_git('', file) - rescue ArgumentError + rescue ArgumentError, Psych::SyntaxError $stderr.puts "Désolé : #{file} n'a pas le bon format !" exit 1 end @@ -80,7 +80,7 @@ module NosOignons next unless file.start_with?("#{NosOignons::MEMBERS_DB_DIR}/") begin NosOignons::Member.read_from_git(new_value, file) - rescue ArgumentError + rescue ArgumentError, Psych::SyntaxError $stderr.puts "Désolé : #{file} n'a pas le bon format !" exit 1 end