Skip to content

Commit

Permalink
Fix error handler when no structured error is present
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Oct 25, 2016
1 parent 61f62d8 commit f380a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elasticsearch/Connections/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,6 @@ private function tryDeserializeError($response, $errorClass)
}

// Response mangled or unexpected, just return the body
return new $errorClass($error, $response['body']);
return new $errorClass($response['body']);
}
}

0 comments on commit f380a69

Please sign in to comment.