Skip to content

Commit

Permalink
Prevents unhandledrejection error when checking for latest Astro vers…
Browse files Browse the repository at this point in the history
…ion (#11013)

* fix: prevent error appear when check latest version fail(#11012)

* Resolve review problem
  • Loading branch information
QingXia-Ela authored May 13, 2024
1 parent 18b78ec commit 4ea38e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/warm-schools-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Prevents unhandledrejection error when checking for latest Astro version
2 changes: 1 addition & 1 deletion packages/astro/src/core/dev/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default async function dev(inlineConfig: AstroInlineConfig): Promise<DevS
);
}
}
});
}).catch(() => { });
} catch (e) {
// Just ignore the error, we don't want to block the dev server from starting and this is just a nice-to-have feature
}
Expand Down

0 comments on commit 4ea38e7

Please sign in to comment.