Skip to content

Commit 8249cd1

Browse files
committed
fix removed try catch
1 parent 01f841b commit 8249cd1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/react-native-executorch/src/utils/ResourceFetcher.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,12 @@ export class ResourceFetcher {
129129
for (const source of sources) {
130130
if (typeof source === 'string' && !this.reportedUrls.has(source)) {
131131
this.reportedUrls.add(source);
132-
ResourceFetcherUtils.triggerHuggingFaceDownloadCounter(source);
133-
ResourceFetcherUtils.triggerDownloadEvent(source);
132+
try {
133+
ResourceFetcherUtils.triggerDownloadEvent(source);
134+
ResourceFetcherUtils.triggerHuggingFaceDownloadCounter(source);
135+
} catch (error) {
136+
throw error;
137+
}
134138
}
135139
}
136140
}

0 commit comments

Comments
 (0)