Services/Xero.php
authoredward <edward@roojs.com>
Wed, 27 Jun 2018 08:24:45 +0000 (16:24 +0800)
committeredward <edward@roojs.com>
Wed, 27 Jun 2018 08:24:45 +0000 (16:24 +0800)
Services/Xero.php

index 278b50d..4be56af 100644 (file)
@@ -25,9 +25,7 @@ class Services_Xero
         $response = $this->XeroOAuth->request('GET', $this->XeroOAuth->url($target, 'core'), $params);
         
         if (empty($this->XeroOAuth->response['code']) || $this->XeroOAuth->response['code'] != 200) {
-            print_R($this->XeroOAuth->response);exit;
-            throw new Exception('Xero Error: ' . $this->XeroOAuth->response['response']);
-            return;
+            return false;
         }
         
         $items = $this->XeroOAuth->parseResponse($this->XeroOAuth->response['response'], $this->XeroOAuth->response['format']);