We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2ffb0e commit 03e7cd3Copy full SHA for 03e7cd3
README.md
@@ -20,14 +20,18 @@ $ npm install errorhandler
20
var errorhandler = require('errorhandler')
21
```
22
23
-### errorhandler([options])
+### errorhandler(options)
24
25
Create new middleware to handle errors and respond with content negotiation.
26
This middleware is only intended to be used in a development environment, as
27
the full error stack traces will be sent back to the client when an error
28
occurs.
29
30
-#### options.log
+#### Options
31
+
32
+Error handler accepts these properties in the options object.
33
34
+##### log
35
36
Provide a function to be called with the error and a string representation of
37
the error. Can be used to write the error to any desired location, or set to
0 commit comments