2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-21 19:11:18 +08:00

Revert "FEATURE: Support backup uploads/downloads directly to/from S3."

This reverts commit c29a4dddc1.

We're doing a beta bump soon so un-revert this after that is done.
This commit is contained in:
Guo Xiang Tan 2018-10-11 11:08:12 +08:00
parent c92bda95e1
commit 3c59106bac
52 changed files with 419 additions and 1078 deletions

View file

@ -24,12 +24,6 @@ module JsonError
# If we're passed an array, it's an array of error messages
return { errors: obj.map(&:to_s) } if obj.is_a?(Array) && obj.present?
if obj.is_a?(Exception)
message = obj.cause.message.presence || obj.cause.class.name if obj.cause
message = obj.message.presence || obj.class.name if message.blank?
return { errors: [message] } if message.present?
end
# Log a warning (unless obj is nil)
Rails.logger.warn("create_errors_json called with unrecognized type: #{obj.inspect}") if obj