From ed0e42a82c1d4be478403d064336a797794de8e7 Mon Sep 17 00:00:00 2001 From: Pablo Ferreiro Date: Fri, 14 Jan 2022 18:00:23 +0100 Subject: [PATCH] Updated wrapper --- composer.lock | 8 ++++---- views/error.latte | 7 +++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index c2a0201..2936f3e 100644 --- a/composer.lock +++ b/composer.lock @@ -310,12 +310,12 @@ "source": { "type": "git", "url": "https://github.com/pablouser1/TikTok-API-PHP.git", - "reference": "1bd0831149d385697c2d7c4d1575efe03e0e713b" + "reference": "71d758f069cfc5348f5d311b177caa2232488d96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pablouser1/TikTok-API-PHP/zipball/1bd0831149d385697c2d7c4d1575efe03e0e713b", - "reference": "1bd0831149d385697c2d7c4d1575efe03e0e713b", + "url": "https://api.github.com/repos/pablouser1/TikTok-API-PHP/zipball/71d758f069cfc5348f5d311b177caa2232488d96", + "reference": "71d758f069cfc5348f5d311b177caa2232488d96", "shasum": "" }, "require": { @@ -357,7 +357,7 @@ "issues": "https://github.com/ssovit/TikTok-API-PHP/issues", "email": "sovit.tamrakar@gmail.com" }, - "time": "2022-01-13T16:05:07+00:00" + "time": "2022-01-14T16:59:51+00:00" }, { "name": "steampixel/simple-php-router", diff --git a/views/error.latte b/views/error.latte index e7e69e2..6a0c2d4 100644 --- a/views/error.latte +++ b/views/error.latte @@ -10,8 +10,11 @@
-

API errror code {$error->tiktok_code}

-

{$error->tiktok_msg}

+

There was an error processing your request!

+

HTTP Code: {$error->http_code}

+ {if $error->tiktok_code} +

API error code {$error->tiktok_code} ({$error->tiktok_msg})

+ {/if}