Skip to content

Commit ac2964b

Browse files
committed
only handle 404 errors
1 parent 2e86d77 commit ac2964b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/targets/github.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,12 @@ export class GitHubTarget extends BaseTarget {
135135
repo: this.githubConfig.repo,
136136
})
137137
).data;
138-
} catch {
139-
// no release yet
138+
} catch (error) {
139+
// if the error is a 404 error, it means that no release exists yet
140+
// all other errors should be rethrown
141+
if (error.status !== 404) {
142+
throw error;
143+
}
140144
}
141145

142146
const isLatest = isPreview

0 commit comments

Comments
 (0)