From f1beb45563aad235060011486db029929549a0d0 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Tue, 17 Dec 2024 22:50:01 +0100 Subject: [PATCH] Update tools/build.js Co-authored-by: Philippe Serhal --- tools/build.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/build.js b/tools/build.js index 4dd84ea492..7063443438 100644 --- a/tools/build.js +++ b/tools/build.js @@ -109,6 +109,7 @@ async function vendorDeno() { const destination = join(vendorDest, url.hostname, url.pathname) const res = await fetch(url) + if (!res.ok) throw new Error('Failed to fetch .wasm file to vendor', {cause: err}) const fileStream = createWriteStream(destination, { flags: 'wx' }) await finished(Readable.fromWeb(res.body).pipe(fileStream)) }),