Skip to content

Commit

Permalink
Merge pull request #1279 from datacite/revert-1275-add-middleware-err…
Browse files Browse the repository at this point in the history
…or-handling

Revert "add middleware error handling"
  • Loading branch information
wendelfabianchinsamy authored Nov 19, 2024
2 parents 6c34d51 + c135d2d commit 30bdaac
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/middleware/compressed_requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,8 @@ def call(env)
env["rack.input"] = StringIO.new(extracted)
end

begin
status, headers, response = @app.call(env)
[status, headers, response]
rescue => err
Raven.capture_exception(err)
Rails.logger.error(err.inspect)
[500, {}, [{ "status": 400, "title": err.message }.to_json]]
end
status, headers, response = @app.call(env)
[status, headers, response]
end

def decode(input, content_encoding)
Expand Down

0 comments on commit 30bdaac

Please sign in to comment.