Skip to content

Commit 4cb24cd

Browse files
committed
Fix samm cli selection on network errors
1 parent dee5c4b commit 4cb24cd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extension/src/sammCliDownloader.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ export class SammCliDownloader {
7474
});
7575

7676
if (!response.ok) {
77-
throw new Error(`Failed to fetch samm-cli releases: ${response.status} ${response.statusText}`);
77+
return [
78+
"Failed to fetch SAMM-CLI releases from GitHub: " + response.status + ' ' + response.statusText
79+
]
7880
}
7981

8082
const fetchedReleases = response.json() as Promise<Array<GitHubRelease>>;

0 commit comments

Comments
 (0)