diff --git a/src/YouTubeDownloader.php b/src/YouTubeDownloader.php index a952618..580c14a 100644 --- a/src/YouTubeDownloader.php +++ b/src/YouTubeDownloader.php @@ -130,7 +130,7 @@ public function getDownloadLinks(string $video_id, array $extra = []): DownloadO } elseif (!$page->isStatusOkay()) { throw new YouTubeException('Page failed to load. HTTP error: ' . $page->getResponse()->error); } elseif ($page->isVideoNotFound()) { - throw new VideoNotFoundException(); + throw new VideoNotFoundException('Video Not Found!'); } elseif ($page->getPlayerResponse()->getPlayabilityStatusReason()) { throw new YouTubeException($page->getPlayerResponse()->getPlayabilityStatusReason()); }