Skip to content

Commit 03e7cd3

Browse files
committed
docs: readme tweaks
1 parent b2ffb0e commit 03e7cd3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@ $ npm install errorhandler
2020
var errorhandler = require('errorhandler')
2121
```
2222

23-
### errorhandler([options])
23+
### errorhandler(options)
2424

2525
Create new middleware to handle errors and respond with content negotiation.
2626
This middleware is only intended to be used in a development environment, as
2727
the full error stack traces will be sent back to the client when an error
2828
occurs.
2929

30-
#### options.log
30+
#### Options
31+
32+
Error handler accepts these properties in the options object.
33+
34+
##### log
3135

3236
Provide a function to be called with the error and a string representation of
3337
the error. Can be used to write the error to any desired location, or set to

0 commit comments

Comments
 (0)