Skip to content

Commit f380a69

Browse files
committed
Fix error handler when no structured error is present
1 parent 61f62d8 commit f380a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/Connections/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,6 @@ private function tryDeserializeError($response, $errorClass)
683683
}
684684

685685
// Response mangled or unexpected, just return the body
686-
return new $errorClass($error, $response['body']);
686+
return new $errorClass($response['body']);
687687
}
688688
}

0 commit comments

Comments
 (0)