Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f1beb45

Browse files
piehserhalp
andauthoredDec 17, 2024··
Update tools/build.js
Co-authored-by: Philippe Serhal <philippe.serhal@netlify.com>
1 parent af3e15b commit f1beb45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎tools/build.js

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ async function vendorDeno() {
109109
const destination = join(vendorDest, url.hostname, url.pathname)
110110

111111
const res = await fetch(url)
112+
if (!res.ok) throw new Error('Failed to fetch .wasm file to vendor', {cause: err})
112113
const fileStream = createWriteStream(destination, { flags: 'wx' })
113114
await finished(Readable.fromWeb(res.body).pipe(fileStream))
114115
}),

0 commit comments

Comments
 (0)
Please sign in to comment.