A platform for community discussion. Free, open, simple.
DEV: Better error handling for s3 task
Robin Ward9ec908950de0
diff --git a/lib/tasks/s3.rake b/lib/tasks/s3.rakeindex b913b0a0eee..1f0ee2e08dc 100644--- a/lib/tasks/s3.rake+++ b/lib/tasks/s3.rake@@ -71,7 +71,12 @@ def assetsmanifest.assets.each do |_, path|fullpath = (Rails.root + "public/assets/#{path}").to_s- content_type = MiniMime.lookup_by_filename(fullpath).content_type+ mime = MiniMime.lookup_by_filename(fullpath)+ if mime.nil?+ STDERR.puts "ERROR: could not determine mime type for #{fullpath}"+ end++ content_type = mime.content_typeasset_path = "assets/#{path}"results << [fullpath, asset_path, content_type]