mirror of
https://github.com/stashapp/stash.git
synced 2026-05-04 18:41:22 +02:00
Provide more information when scraper loadURL fails
This commit is contained in:
parent
badebfd8f9
commit
1580cf9bd9
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ func (s *xpathScraper) scrapeImageByImage(ctx context.Context, image *models.Ima
|
|||
func (s *xpathScraper) loadURL(ctx context.Context, url string) (*html.Node, error) {
|
||||
r, err := loadURL(ctx, url, s.client, s.config, s.globalConfig)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("failed to load URL %q: %w", url, err)
|
||||
}
|
||||
|
||||
ret, err := html.Parse(r)
|
||||
|
|
|
|||
Loading…
Reference in a new issue