From db1ac536aaa85f2c06f17c515fc2e77b4adf18b3 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Sat, 10 Dec 2016 00:54:19 +0100 Subject: [PATCH] Echo error message in TraktAPI --- nntmux/libraries/TraktAPI.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nntmux/libraries/TraktAPI.php b/nntmux/libraries/TraktAPI.php index a1a775a71..7f3598c4c 100755 --- a/nntmux/libraries/TraktAPI.php +++ b/nntmux/libraries/TraktAPI.php @@ -26,6 +26,11 @@ Class TraktAPI { */ private $requestHeaders; + /** + * @var Client + */ + protected $client; + /** * Construct. Assign passed request headers. Headers should be complete with API key. * @@ -155,6 +160,7 @@ Class TraktAPI { ] )->getBody()->getContents(); } catch (ClientException $e) { + echo "Error retrieving data from TraktTV"; } if (isset($json) && $json !== false) {