Skip to content
Snippets Groups Projects
Commit 9b1ab0e4 authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Fixed double render error

parent 8403a711
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,10 @@ class ApplicationController < ActionController::API
rescue_from Exception do |exception|
logger.fatal exception
logger.fatal exception.backtrace.first(5).join("\n")
render status: :internal_server_error
logger.fatal exception.backtrace.first(10).join("\n")
unless response_body
render status: :internal_server_error
end
end
# check if client application is allowed to consumes the API.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment