Skip to content

Commit dccc6dd

Browse files
authored
chore: helpful exceptions (#17)
* Helpful exceptions
1 parent 6dfaa7a commit dccc6dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ToolBox/Tool/YouTubeTranscriber.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ public function __construct(
1616
private HttpClientInterface $client,
1717
) {
1818
if (!class_exists(Crawler::class)) {
19-
throw new \LogicException('The Symfony DomCrawler component is required to use this tool.');
19+
throw new \LogicException('The Symfony DomCrawler component is required to use this tool. Try running "composer require symfony/dom-crawler".');
2020
}
2121
if (!class_exists(CssSelectorConverter::class)) {
22-
throw new \LogicException('The Symfony CSS Selector component is required to use this tool.');
22+
throw new \LogicException('The Symfony CSS Selector component is required to use this tool. Try running "composer require symfony/css-selector".');
2323
}
2424
}
2525

0 commit comments

Comments
 (0)