diff --git a/app/Helpers/ErrorHandler.php b/app/Helpers/ErrorHandler.php index aa0c93f..6948011 100644 --- a/app/Helpers/ErrorHandler.php +++ b/app/Helpers/ErrorHandler.php @@ -7,7 +7,7 @@ use TikScraper\Models\Meta; class ErrorHandler { public static function showMeta(Meta $meta) { http_response_code($meta->httpCode); - Wrappers::latte('error', new ErrorTemplate($meta->httpCode, $meta->proxitokMsg, $meta->proxitokCode)); + Wrappers::latte('error', new ErrorTemplate($meta->httpCode, $meta->proxitokMsg, $meta->proxitokCode, $meta->response)); } public static function showText(int $code, string $msg) { diff --git a/app/Models/ErrorTemplate.php b/app/Models/ErrorTemplate.php index 258e1a1..0f87e73 100644 --- a/app/Models/ErrorTemplate.php +++ b/app/Models/ErrorTemplate.php @@ -1,16 +1,20 @@ http_code = $http_code; $this->msg = $msg; $this->tiktok_code = $tiktok_code; + $this->response = $response; } } diff --git a/composer.json b/composer.json index 5b3939b..fb8bace 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "pablouser1/proxitok", "description": "An alternative frontend for TikTok", - "version": "2.4.9.3", + "version": "2.4.9.4", "license": "AGPL-3.0-or-later", "type": "project", "authors": [ diff --git a/composer.lock b/composer.lock index 841b5cc..15ba869 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "4936009a1822a0fc75b73211a28827cb", + "content-hash": "e32037e3931913dc8d292e7dadde275f", "packages": [ { "name": "bramus/router", @@ -587,16 +587,16 @@ }, { "name": "pablouser1/tikscraper", - "version": "v2.4.0.2", + "version": "v2.4.0.3", "source": { "type": "git", "url": "https://github.com/pablouser1/TikScraperPHP.git", - "reference": "eb12cc62176a58f1952983c34275453c8a4bcc46" + "reference": "a64c912b0db72ffa85e3a2e3e6c375f1ae86aedd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pablouser1/TikScraperPHP/zipball/eb12cc62176a58f1952983c34275453c8a4bcc46", - "reference": "eb12cc62176a58f1952983c34275453c8a4bcc46", + "url": "https://api.github.com/repos/pablouser1/TikScraperPHP/zipball/a64c912b0db72ffa85e3a2e3e6c375f1ae86aedd", + "reference": "a64c912b0db72ffa85e3a2e3e6c375f1ae86aedd", "shasum": "" }, "require": { @@ -630,9 +630,9 @@ "description": "Get data from TikTok API", "support": { "issues": "https://github.com/pablouser1/TikScraperPHP/issues", - "source": "https://github.com/pablouser1/TikScraperPHP/tree/v2.4.0.2" + "source": "https://github.com/pablouser1/TikScraperPHP/tree/v2.4.0.3" }, - "time": "2023-09-29T11:50:04+00:00" + "time": "2023-10-06T22:15:09+00:00" }, { "name": "php-webdriver/webdriver", diff --git a/templates/views/error.latte b/templates/views/error.latte index 37edfdf..8ff3776 100644 --- a/templates/views/error.latte +++ b/templates/views/error.latte @@ -14,5 +14,11 @@ {else}
{$msg}
{/if} + {if isset($response)} +{json_encode($response, JSON_PRETTY_PRINT)}+