diff --git a/app/controllers/graphql_controller.rb b/app/controllers/graphql_controller.rb index ea1decdb5..ba8edc2b4 100644 --- a/app/controllers/graphql_controller.rb +++ b/app/controllers/graphql_controller.rb @@ -14,6 +14,8 @@ class GraphqlController < ApplicationController render json: { message: 'Query string not present' }, status: :bad_request rescue GraphQL::ParseError render json: { message: 'Query string is not valid JSON' }, status: :bad_request + rescue + unless Rails.env.production? then raise end end end