1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 17:49:08 -05:00

minor fix to websocket readme (#6207)

This commit is contained in:
Ch3ri0ur 2020-06-10 15:03:26 +02:00 committed by GitHub
parent db70b77e4b
commit f364a4c2b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ if (import.meta.main) {
headers, headers,
}) })
.then(handleWs) .then(handleWs)
.catch(async (e) => { .catch(async (err) => {
console.error(`failed to accept websocket: ${err}`); console.error(`failed to accept websocket: ${err}`);
await req.respond({ status: 400 }); await req.respond({ status: 400 });
}); });