This commit is contained in:
David Sherret 2023-05-17 16:38:50 -04:00
parent f7913a0aca
commit 5aaf36e631

View File

@ -48,7 +48,9 @@ function parseVersionRange(version) {
async function resolveVersion({ range, isCanary }) { async function resolveVersion({ range, isCanary }) {
if (isCanary) { if (isCanary) {
if (range === "latest") { if (range === "latest") {
const res = await fetchWithRetries("https://dl.deno.land/canary-latest.txt"); const res = await fetchWithRetries(
"https://dl.deno.land/canary-latest.txt",
);
if (res.status !== 200) { if (res.status !== 200) {
throw new Error( throw new Error(
"Failed to fetch canary version info from dl.deno.land. Please try again later.", "Failed to fetch canary version info from dl.deno.land. Please try again later.",