Skip to content

Commit 15528e1

Browse files
author
Robert Mosolgo
authored
Merge pull request #3460 from the-harry/master
Rescue StandardError on graphql controller.
2 parents 2e9e8e4 + 8cfeb52 commit 15528e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/generators/graphql/templates/graphql_controller.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class GraphqlController < ApplicationController
1515
}
1616
result = <%= schema_name %>.execute(query, variables: variables, context: context, operation_name: operation_name)
1717
render json: result
18-
rescue => e
18+
rescue StandardError => e
1919
raise e unless Rails.env.development?
20-
handle_error_in_development e
20+
handle_error_in_development(e)
2121
end
2222

2323
private

0 commit comments

Comments
 (0)