Alonso
1 min readNov 15, 2018

--

```elif isinstance(error.original_error, WonpyGraphQLError):
# return custom error if it is an instance of CustomFatalError
format_error = GraphQLView.format_error(error)
format_error[‘code’] = error.original_error.code
format_error[‘message’] = error.original_error.message

return format_error```

--

--

Alonso
Alonso

Written by Alonso

Loving the software and the cyberpunk

No responses yet