-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Graphiti's error classes have a lot of message
methods with helpful errors details. But as far as I can tell, graphiti-rails has the rendering of these disabled because it doesn't pass detail: :exception
to rescue-registry
here:
graphiti-rails/lib/graphiti/rails.rb
Lines 46 to 49 in 4a8a065
register_exception Graphiti::Errors::InvalidRequest, status: 400, handler: Graphiti::Rails::InvalidRequestHandler | |
register_exception Graphiti::Errors::RecordNotFound, status: 404, handler: Graphiti::Rails::ExceptionHandler | |
register_exception Graphiti::Errors::RemoteWrite, status: 400, handler: Graphiti::Rails::ExceptionHandler | |
register_exception Graphiti::Errors::SingularSideload, status: 400, handler: Graphiti::Rails::ExceptionHandler |
This results in detail: nil
in the jsonapi errors.
Metadata
Metadata
Assignees
Labels
No labels