Skip to content

Commit

Permalink
Bugfix - Exception class not found (#148)
Browse files Browse the repository at this point in the history
Using `Presta\SitemapBundle\Exception\GoogleImageException` instead of non-existing
`Presta\SitemapBundle\Exception\GoogleImageUrlDecorator `
  • Loading branch information
Warxcell authored and yann-eugone committed Aug 7, 2017
1 parent e797d33 commit 489cdf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sitemap/Url/GoogleImageUrlDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class GoogleImageUrlDecorator extends UrlDecorator
public function addImage(GoogleImage $image)
{
if ($this->isFull()) {
throw new Exception\GoogleImageUrlDecorator('The image limit has been exceeded');
throw new Exception\GoogleImageException('The image limit has been exceeded');
}

$this->imageXml .= $image->toXml();
Expand Down

0 comments on commit 489cdf6

Please sign in to comment.