Skip to content

Commit

Permalink
improving log on prepare function
Browse files Browse the repository at this point in the history
  • Loading branch information
Luizao committed Aug 6, 2021
1 parent 8937f09 commit 5333b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractDuf.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function prepare(array $resources)
throw new \InvalidArgumentException('One or more resources not contain an empty name or path');
}
if ($resource instanceof WebResource && !filter_var($resource->getUrl(), FILTER_VALIDATE_URL)) {
throw new \InvalidArgumentException('One or more web resources contain an invalid URL');
throw new \InvalidArgumentException('One or more web resources contain an invalid URL - ' . $resource->getUrl());
}
$this->fileResources[] = $resource;
}, ARRAY_FILTER_USE_BOTH);
Expand Down

0 comments on commit 5333b55

Please sign in to comment.