File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Elasticsearch.Net/Connection Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ Target "BuildApp" (fun _ ->
4040
4141 //Scan for xml docs and patch them to replace <inheritdoc /> with the documentation
4242 //from their interfaces
43- !! " build/output/Nest/Nest.xml" |> Seq.iter( fun f -> PatchXmlDoc f)
43+ // !! "build/output/Nest/Nest.xml" |> Seq.iter(fun f -> PatchXmlDoc f)
4444
4545 CopyFile " build/output/Elasticsearch.Net/init.ps1" " build/elasticsearch-init.ps1"
4646
Original file line number Diff line number Diff line change @@ -202,7 +202,13 @@ private ElasticsearchResponse<T> DoRequest<T>(TransportRequestState<T> requestSt
202202 && requestState . RequestConfiguration != null
203203 && requestState . RequestConfiguration . AllowedStatusCodes . All ( i => i != streamResponse . HttpStatusCode ) ) )
204204 {
205- error = this . Serializer . Deserialize < ElasticsearchServerError > ( streamResponse . Response ) ;
205+ if ( streamResponse . Response != null )
206+ error = this . Serializer . Deserialize < ElasticsearchServerError > ( streamResponse . Response ) ;
207+ else
208+ error = new ElasticsearchServerError
209+ {
210+ Status = streamResponse . HttpStatusCode . GetValueOrDefault ( - 1 )
211+ } ;
206212 if ( this . Settings . ThrowOnElasticsearchServerExceptions )
207213 throw new ElasticsearchServerException ( error ) ;
208214 }
Original file line number Diff line number Diff line change 323323 <None Include =" Core\Map\Properties\AttachmentProperty.json" >
324324 <CopyToOutputDirectory >Always</CopyToOutputDirectory >
325325 </None >
326- <None Include =" Core\Map\Properties\DocValuesProperty.json" />
326+ <None Include =" Core\Map\Properties\DocValuesProperty.json" >
327+ <CopyToOutputDirectory >Always</CopyToOutputDirectory >
328+ </None >
327329 <None Include =" Core\Map\Properties\GeoShapeProperty.json" >
328330 <CopyToOutputDirectory >Always</CopyToOutputDirectory >
329331 </None >
You can’t perform that action at this time.
0 commit comments