Show debug info when TikTok gives error
This commit is contained in:
parent
3ba64be202
commit
a3b4143ab1
5 changed files with 20 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue