Skip to content

Commit

Permalink
Merge pull request #2078 from openzim/log-object
Browse files Browse the repository at this point in the history
Log title instead of Downloader object
  • Loading branch information
audiodude authored Aug 13, 2024
2 parents 6a78f41 + 0273f71 commit 0cc5bc4
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}`
logger.error(errorMessage)

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

0 comments on commit 0cc5bc4

Please sign in to comment.