Skip to content

Commit

Permalink
Fix unit test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants committed Mar 3, 2020
1 parent 54dcdcf commit 6ccdfe2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/scraper/scrapers.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func ScrapePerformer(scraperID string, scrapedPerformer models.ScrapedPerformerI

// post-process - set the image if applicable
if err := setPerformerImage(ret); err != nil {
logger.Warn("Could not set image using URL: %s", ret.Image)
logger.Warnf("Could not set image using URL %s: %s", *ret.Image, err.Error())
}

return ret, nil
Expand All @@ -134,7 +134,7 @@ func ScrapePerformerURL(url string) (*models.ScrapedPerformer, error) {

// post-process - set the image if applicable
if err := setPerformerImage(ret); err != nil {
logger.Warn("Could not set image using URL: %s", ret.Image)
logger.Warnf("Could not set image using URL %s: %s", *ret.Image, err.Error())
}

return ret, nil
Expand Down Expand Up @@ -225,7 +225,7 @@ func postScrapeScene(ret *models.ScrapedScene) error {

// post-process - set the image if applicable
if err := setSceneImage(ret); err != nil {
logger.Warn("Could not set image using URL: %s", ret.Image)
logger.Warnf("Could not set image using URL %s: %s", *ret.Image, err.Error())
}

return nil
Expand Down

0 comments on commit 6ccdfe2

Please sign in to comment.