Skip to content

Commit 31f61f5

Browse files
committed
docs: fixed console.error usage in examples
1 parent 6ccb103 commit 31f61f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ server.on('upgrade', (req, socket, head) => {
4646
proxy.ws(req, socket, head, {
4747
hostname: 'localhost'
4848
port: 9000
49-
}, err => console.error(err, 'proxy error'))
49+
}, err => console.error('proxy error', err))
5050
})
5151
```
5252

@@ -58,7 +58,7 @@ server.on('request', (req, res) => {
5858
hostname: 'localhost'
5959
port: 9000,
6060
onRes: (req, res) => helmet(req, res, () => {})
61-
}, err => console.error(err, 'proxy error'))
61+
}, err => console.error('proxy error', err))
6262
})
6363
```
6464

0 commit comments

Comments
 (0)