lib/generators/graphql/templates/graphql_controller.erb in graphql-1.12.8 vs lib/generators/graphql/templates/graphql_controller.erb in graphql-1.12.9

- old
+ new

@@ -13,12 +13,12 @@ # Query context goes here, for example: # current_user: current_user, } result = <%= schema_name %>.execute(query, variables: variables, context: context, operation_name: operation_name) render json: result - rescue => e + rescue StandardError => e raise e unless Rails.env.development? - handle_error_in_development e + handle_error_in_development(e) end private # Handle variables in form data, JSON body, or a blank value