Skip to content

Commit

Permalink
Merge pull request ManageIQ#23186 from jrafanie/use_system_exception_…
Browse files Browse the repository at this point in the history
…option

Use Kernel system exception handling
  • Loading branch information
Fryguy authored Sep 13, 2024
2 parents 4ce508e + 81f76d9 commit 81fa4af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/tasks/locale.rake
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,7 @@ namespace :locale do
Dir.mkdir(combined_dir, 0o700)
po_files.each do |locale, files|
files.each do |file|
unless system "msgfmt --check #{file}"
puts "Fatal error running 'msgfmt --check' on file: #{file}. Review the output above."
exit 1
end
system("msgfmt --check #{file}", :exception => true)
end

dir = File.join(combined_dir, locale)
Expand Down

0 comments on commit 81fa4af

Please sign in to comment.