Permalink
Browse files

Another tweak to chmod...

  • Loading branch information...
1 parent 3539cbe commit fe1fe38fb9d9018420016bc8ca44be63c35c447a Daniel Tenner committed Aug 3, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/num_fu.rb
View
@@ -58,8 +58,8 @@ def save_to_storage
File.mv(@temp_path, full_filename)
File.chmod(attachment_options[:chmod] || 0666, File.expand_path(full_filename))
end
- rescue ::Error
- RAILS_DEFAULT_LOGGER.debug "Failed to chmod #{full_filename}"
+ rescue ::Exception => e
+ RAILS_DEFAULT_LOGGER.debug "Failed to chmod #{full_filename} - #{e.inspect}"
end
def delete

0 comments on commit fe1fe38

Please sign in to comment.