Skip to content

Commit ca265d2

Browse files
author
Jon Rutter
authored
Clarify express-async-errors import order
Clarify that express-async-errors must be imported before routes are defined, in order for the library to work correctly, as explained in the docs (https://github.com/davidbanham/express-async-errors#usage).
1 parent 5e11e3d commit ca265d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/4/en/part4b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ npm install express-async-errors
832832
```
833833

834834
Using the library is <i>very</i> easy.
835-
You introduce the library in <i>app.js</i>:
835+
You introduce the library in <i>app.js</i>, _before_ you import your routes:
836836

837837
```js
838838
const config = require('./utils/config')

0 commit comments

Comments
 (0)