DEV: Better error handling for s3 task

DEV: Better error handling for s3 task

diff --git a/lib/tasks/s3.rake b/lib/tasks/s3.rake
index b913b0a..1f0ee2e 100644
--- a/lib/tasks/s3.rake
+++ b/lib/tasks/s3.rake
@@ -71,7 +71,12 @@ def assets
   manifest.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_type
 
     asset_path = "assets/#{path}"
     results << [fullpath, asset_path, content_type]

GitHub sha: 9ec90895

Probably want an exit 1 after the STDERR.puts. Otherwise mime.content_type will explode with a backtrace and you can lose sight of the STDERR.

I saw the followup commit, all looks good.