diff --git a/lib/middleware/compressed_requests.rb b/lib/middleware/compressed_requests.rb index 988ba62d8..f1de08b2b 100644 --- a/lib/middleware/compressed_requests.rb +++ b/lib/middleware/compressed_requests.rb @@ -31,10 +31,10 @@ def call(env) begin status, headers, response = @app.call(env) [status, headers, response] - rescue => err + rescue => errß Raven.capture_exception(err) Rails.logger.error(err.inspect) - [500, {}, [{"status": 400, "title": err.message}.to_json]] + [500, {}, [{ "status": 400, "title": err.message }.to_json]] end end