diff --git a/src/download-cli.js b/src/download-cli.js index 59f4076..3007849 100644 --- a/src/download-cli.js +++ b/src/download-cli.js @@ -23,7 +23,7 @@ fs.mkdirSync(path.dirname(EXECUTABLE_PATH), { recursive: true }); async function downloadFile(url, dest) { const res = await fetch(url); if (!res.ok) { - throw new Error(`Failed to fetch ${url}: ${res.statusText}`); + throw new Error(`Failed to fetch ${url} : ${res.statusText}`); } const fileStream = fs.createWriteStream(dest); await pipeline(Readable.fromWeb(res.body), fileStream);