Skip to content

Commit

Permalink
fix(base-provider): Fixed e not being defined
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Oct 16, 2020
1 parent b882c10 commit 6b94584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/scraper/base-provider/src/base.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,12 @@ export abstract class BaseProvider {
} catch (err) {
// If we are allowed to retry then do else throw the error
if (retry) {
this.logger.warn(`On page ${page} "${e}", going to retry.`)
this.logger.warn(`On page ${page} "${err}", going to retry.`)

return this.getOnePage(page, false)

} else {
this.logger.error(`On page ${page} "${e}"`)
this.logger.error(`On page ${page} "${err}"`)

throw err
}
Expand Down

0 comments on commit 6b94584

Please sign in to comment.