We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b76c8ef commit 5d5bdcbCopy full SHA for 5d5bdcb
cmd/tasks/util/fetch-download-count.mjs
@@ -5,8 +5,14 @@ export async function fetchDownloadCount(name) {
5
await new Promise((resolve) => setTimeout(resolve, 10000));
6
return fetchDownloadCount(name);
7
}
8
+
9
+ if (response.status === 404) {
10
+ return {
11
+ downloads: 0
12
+ }
13
14
- if (response.status !== 200) {
15
+ if (!response.ok) {
16
throw new Error(`Fetching downloads count : ${response.statusText}`);
17
18
0 commit comments