From 0ab04b2ff8d2e355ecf7e987b462f42184c50c79 Mon Sep 17 00:00:00 2001 From: Drsdre Date: Wed, 19 Apr 2017 12:36:47 +0200 Subject: [PATCH] Remove unused context parameter from deleteData. Fix rethrowing httpclient Exception. --- Client.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Client.php b/Client.php index 9e64097..6a720df 100644 --- a/Client.php +++ b/Client.php @@ -266,17 +266,12 @@ public function postData( * Delete data with entity url * * @param string $entity_url - * @param string $context * * @return self */ public function deleteData( - $entity_url, - $context = 'edit' + $entity_url ) { - // Set context - $data['context'] = $context; - $this->request = $this->createAuthenticatedRequest() ->setMethod( 'delete' ) @@ -488,10 +483,7 @@ protected function executeRequest() { $this->retries ++; } else { // Too many retries, retrow Exception - throw new Exception( - 'Curl connection error: ' . $e->getMessage(), - Exception::FAIL - ); + throw $e; } } catch ( Exception $e ) {