```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```