Skip to content

Commit 4ea38e7

Browse files
authoredMay 13, 2024··
Prevents unhandledrejection error when checking for latest Astro version (#11013)
* fix: prevent error appear when check latest version fail(#11012) * Resolve review problem
1 parent 18b78ec commit 4ea38e7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/warm-schools-applaud.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"astro": patch
3+
---
4+
5+
Prevents unhandledrejection error when checking for latest Astro version

‎packages/astro/src/core/dev/dev.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default async function dev(inlineConfig: AstroInlineConfig): Promise<DevS
7373
);
7474
}
7575
}
76-
});
76+
}).catch(() => { });
7777
} catch (e) {
7878
// Just ignore the error, we don't want to block the dev server from starting and this is just a nice-to-have feature
7979
}

0 commit comments

Comments
 (0)
Please sign in to comment.