more debug info

This commit is contained in:
albert
2011-09-15 18:38:48 -04:00
parent 18cfc49d96
commit 45fd093761

View File

@@ -74,7 +74,7 @@ class Upload < ActiveRecord::Base
end end
end end
rescue Exception => x rescue Exception => x
update_attribute(:status, "error: #{x} - #{x.message}") update_attribute(:status, "error: #{x.class} - #{x.message} - #{x.backtrace.join("\n")}")
ensure ensure
delete_temp_file delete_temp_file
end end