Skip to content

Commit

Permalink
fix(downloader): add missing onError hook for fetches only
Browse files Browse the repository at this point in the history
it was missing before

closes #159
  • Loading branch information
nurrony committed Mar 23, 2024
1 parent f846c1d commit ef9c4c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,9 @@ class Downloader {
return item$;
} catch ({ name, message }) {
this.errors.push({ url: item, name, message });
if (this.onError) {
this.onError({ url: item, name, message });
}
}
})
)
Expand Down

0 comments on commit ef9c4c6

Please sign in to comment.