mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 10:18:55 +00:00
Echo error message in TraktAPI
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user