Skip to content

Commit

Permalink
Update Browsershot.php
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored Dec 23, 2024
1 parent a1aae46 commit 420bb18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Browsershot.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public function waitForSelector(string $selector, array $options = []): static
public function setUrl(string $url): static
{
if (filter_var($url, FILTER_VALIDATE_URL) === false ){
throw FileUrlNotAllowed::parseError();
throw FileUrlNotAllowed::urlCannotBeParsed($url);
}

$unsupportedProtocols = [
Expand Down

0 comments on commit 420bb18

Please sign in to comment.