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.
2 parents 8e5edf0 + 285728a commit 75858beCopy full SHA for 75858be
README.md
@@ -178,12 +178,11 @@ connect(
178
#### Express
179
```javascript
180
var app = require('express')();
181
-app.use(app.router);
182
-app.use(raven.middleware.express('{{ SENTRY_DSN }}'));
183
-app.use(onError); // optional error handler if you want to display the error id to a user
184
app.get('/', function mainHandler(req, res) {
185
throw new Error('Broke!');
186
});
+app.use(raven.middleware.express('{{ SENTRY_DSN }}'));
+app.use(onError); // optional error handler if you want to display the error id to a user
187
app.listen(3000);
188
```
189
0 commit comments