Skip to content

Commit

Permalink
docs: fixed console.error usage in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Sep 12, 2017
1 parent 6ccb103 commit 31f61f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ server.on('upgrade', (req, socket, head) => {
proxy.ws(req, socket, head, {
hostname: 'localhost'
port: 9000
}, err => console.error(err, 'proxy error'))
}, err => console.error('proxy error', err))
})
```

Expand All @@ -58,7 +58,7 @@ server.on('request', (req, res) => {
hostname: 'localhost'
port: 9000,
onRes: (req, res) => helmet(req, res, () => {})
}, err => console.error(err, 'proxy error'))
}, err => console.error('proxy error', err))
})
```

Expand Down

0 comments on commit 31f61f5

Please sign in to comment.