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 ) {