Skip to content

Commit c878419

Browse files
committed
Favor LogicException for missing classes & functions
1 parent 3781d24 commit c878419

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Crawler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ private function createSubCrawler($nodes)
11661166
private function createCssSelectorConverter(): CssSelectorConverter
11671167
{
11681168
if (!\class_exists(CssSelectorConverter::class)) {
1169-
throw new \RuntimeException('To filter with a CSS selector, install the CssSelector component ("composer require symfony/css-selector"). Or use filterXpath instead.');
1169+
throw new \LogicException('To filter with a CSS selector, install the CssSelector component ("composer require symfony/css-selector"). Or use filterXpath instead.');
11701170
}
11711171

11721172
return new CssSelectorConverter($this->isHtml);

0 commit comments

Comments
 (0)