Skip to content

Commit

Permalink
More generic error
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjaustin committed Dec 30, 2024
1 parent 6529a97 commit 297e0ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tasks/after_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ namespace :After do
filename: image_original,
content_type: collection.icon_content_type)
rescue => e

Check warning on line 343 in lib/tasks/after_tasks.rake

View workflow job for this annotation

GitHub Actions / Rubocop

[rubocop] reported by reviewdog 🐶 Avoid rescuing without specifying an error class. Raw Output: lib/tasks/after_tasks.rake:343:7: C: Style/RescueStandardError: Avoid rescuing without specifying an error class.
puts "Error '#{e}' copying #{icon_url}; check original permissions"
puts "Error '#{e}' copying #{icon_url}"
end

puts "Finished up to ID #{collection.id}" if collection.id.modulo(100).zero?
Expand Down Expand Up @@ -369,7 +369,7 @@ namespace :After do
filename: image_original,
content_type: pseud.icon_content_type)
rescue => e

Check warning on line 371 in lib/tasks/after_tasks.rake

View workflow job for this annotation

GitHub Actions / Rubocop

[rubocop] reported by reviewdog 🐶 Avoid rescuing without specifying an error class. Raw Output: lib/tasks/after_tasks.rake:371:7: C: Style/RescueStandardError: Avoid rescuing without specifying an error class.
puts "Error '#{e}' copying #{icon_url}; check original permissions"
puts "Error '#{e}' copying #{icon_url}"
end

puts "Finished up to ID #{pseud.id}" if pseud.id.modulo(100).zero?
Expand All @@ -394,7 +394,7 @@ namespace :After do
filename: image_original,
content_type: skin.icon_content_type)
rescue => e

Check warning on line 396 in lib/tasks/after_tasks.rake

View workflow job for this annotation

GitHub Actions / Rubocop

[rubocop] reported by reviewdog 🐶 Avoid rescuing without specifying an error class. Raw Output: lib/tasks/after_tasks.rake:396:7: C: Style/RescueStandardError: Avoid rescuing without specifying an error class.
puts "Error '#{e}' copying #{icon_url}; check original permissions"
puts "Error '#{e}' copying #{icon_url}"
end

puts "Finished up to ID #{skin.id}" if skin.id.modulo(100).zero?
Expand Down

0 comments on commit 297e0ac

Please sign in to comment.