Skip to content

Commit a0ec24b

Browse files
committed
reorder...
1 parent bd760f7 commit a0ec24b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

platform-includes/getting-started-config/javascript.express.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ Sentry.init({
1515
const express = require("express");
1616
const app = express();
1717

18-
Sentry.setupExpressErrorHandler(app);
19-
2018
// Add your routes, etc.
2119

20+
// Add this after all routes and other middlewares are defined
21+
Sentry.setupExpressErrorHandler(app);
22+
2223
app.listen(3000);
2324
```
2425

0 commit comments

Comments
 (0)