We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01f841b commit 8249cd1Copy full SHA for 8249cd1
packages/react-native-executorch/src/utils/ResourceFetcher.ts
@@ -129,8 +129,12 @@ export class ResourceFetcher {
129
for (const source of sources) {
130
if (typeof source === 'string' && !this.reportedUrls.has(source)) {
131
this.reportedUrls.add(source);
132
- ResourceFetcherUtils.triggerHuggingFaceDownloadCounter(source);
133
- ResourceFetcherUtils.triggerDownloadEvent(source);
+ try {
+ ResourceFetcherUtils.triggerDownloadEvent(source);
134
+ ResourceFetcherUtils.triggerHuggingFaceDownloadCounter(source);
135
+ } catch (error) {
136
+ throw error;
137
+ }
138
}
139
140
0 commit comments