You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throwElasticSearchClientError(message:"Failed to convert \(D.self)", status: clientResponse.status.code)
103
+
throwElasticSearchClientError(message:"No body from ElasticSearch response", status: clientResponse.status)
108
104
}
109
-
returnresponse
105
+
returnbody
110
106
default:
111
107
letrequestBody:String
112
108
iflet body = body {
@@ -121,8 +117,19 @@ public struct ElasticsearchClient {
121
117
responseBody ="Empty"
122
118
}
123
119
self.logger.trace("Got response status \(clientResponse.status) from ElasticSearch with response \(clientResponse) when trying \(method) request to \(url). Request body was \(requestBody) and response body was \(responseBody)")
124
-
throwElasticSearchClientError(message:"Bad status code from ElasticSearch", status: clientResponse.status.code)
120
+
throwElasticSearchClientError(message:"Bad status code from ElasticSearch", status: clientResponse.status)
0 commit comments