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:
parent
db70b77e4b
commit
f364a4c2b6
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ if (import.meta.main) {
|
|||
headers,
|
||||
})
|
||||
.then(handleWs)
|
||||
.catch(async (e) => {
|
||||
.catch(async (err) => {
|
||||
console.error(`failed to accept websocket: ${err}`);
|
||||
await req.respond({ status: 400 });
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue