Permalink
Browse files

nicer error messages

  • Loading branch information...
1 parent a955333 commit dff05b35288717cbbb008b3d8e542e995c276f20 @mreinsch mreinsch committed with jyurek Aug 6, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/tasks/paperclip.rake
View
@@ -33,7 +33,8 @@ namespace :paperclip do
Paperclip.each_instance_with_attachment(klass, name) do |instance|
instance.send(name).reprocess!(*styles)
unless instance.errors.blank?
- puts "#{instance.id}: #{instance.errors.full_messages.inspect}"
+ puts "errors while processing #{klass} ID #{instance.id}:"
+ puts " " + instance.errors.full_messages.join("\n ") + "\n"
end
end
end

0 comments on commit dff05b3

Please sign in to comment.