Skip to content

Commit

Permalink
Log title instead of Downloader object
Browse files Browse the repository at this point in the history
  • Loading branch information
audiodude committed Aug 13, 2024
1 parent 6a78f41 commit 0273f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ class Downloader {
const articleData = await this.getJSON<any>(articleApiUrl)

if (articleData.error) {
const errorMessage = `Unable to retrieve js/css dependencies for article '${this}': ${articleData.error.code}`
const errorMessage = `Unable to retrieve js/css dependencies for article '${title}': ${articleData.error.code}`

Check warning on line 658 in src/Downloader.ts

View check run for this annotation

Codecov / codecov/patch

src/Downloader.ts#L658

Added line #L658 was not covered by tests
logger.error(errorMessage)

/* If article is missing (for example because it just has been deleted) */
Expand Down

0 comments on commit 0273f71

Please sign in to comment.