Skip to content

Commit

Permalink
Update CrawlRequestFailed.php (#388)
Browse files Browse the repository at this point in the history
why did you put empty string for message? i fixed it
  • Loading branch information
asefsoft authored Nov 11, 2021
1 parent 06a8651 commit ed85740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handlers/CrawlRequestFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(protected Crawler $crawler)
public function __invoke(Exception $exception, $index)
{
if ($exception instanceof ConnectException) {
$exception = new RequestException('', $exception->getRequest());
$exception = new RequestException($exception->getMessage(), $exception->getRequest());
}

if ($exception instanceof RequestException) {
Expand Down

0 comments on commit ed85740

Please sign in to comment.