Skip to content

Commit

Permalink
adds 404 check when fetching repo public key (#5643)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkendall committed Mar 31, 2023
1 parent 37cf3c5 commit 9714a6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- The hosting emulator integration with web frameworks now has improved support for HMR and dev-tools. (#5582)
- Fixes an issue where `init hosting:github` would hang if it could not access a repository's public key. (#5317)
2 changes: 1 addition & 1 deletion src/init/features/hosting/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ async function promptForRepo(
key = body.key;
keyId = body.key_id;
} catch (e: any) {
if (e.status === 403) {
if ([403, 404].includes(e.status)) {
logger.info();
logger.info();
logWarning(
Expand Down

0 comments on commit 9714a6f

Please sign in to comment.