Nicer error display
This commit is contained in:
parent
96fb2fd428
commit
38557fafa6
15 changed files with 53 additions and 32 deletions
|
|
@ -15,7 +15,7 @@ class RedirectController {
|
|||
case 'url':
|
||||
$endpoint = self::to_endpoint($term);
|
||||
if (!$endpoint) {
|
||||
echo 'Invalid or unknown TikTok URL format';
|
||||
ErrorHandler::showText(400, 'Invalid TikTok URL');
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue