Skip to content

Commit 75858be

Browse files
committed
Merge pull request #99 from xavierdutreilh/master
Update Express example in README
2 parents 8e5edf0 + 285728a commit 75858be

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,11 @@ connect(
178178
#### Express
179179
```javascript
180180
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
184181
app.get('/', function mainHandler(req, res) {
185182
throw new Error('Broke!');
186183
});
184+
app.use(raven.middleware.express('{{ SENTRY_DSN }}'));
185+
app.use(onError); // optional error handler if you want to display the error id to a user
187186
app.listen(3000);
188187
```
189188

0 commit comments

Comments
 (0)