Skip to content

Commit 9991657

Browse files
authored
Merge pull request #324 from Kanti/patch-1
Update AllErrorsHandler.ts
2 parents 773e01d + 470146a commit 9991657

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import {ExpressErrorMiddlewareInterface} from "../../src/driver/express/ExpressErrorMiddlewareInterface";
22
import {Middleware} from "../../src/decorator/Middleware";
33

4-
@Middleware({ type: "before" })
4+
@Middleware({ type: "after" })
55
export class AllErrorsHandler implements ExpressErrorMiddlewareInterface {
66

7-
error(error: any, request: any, response: any, next?: Function): void {
7+
error(error: any, request: any, response: any, next: Function): void {
88
console.log("Error handled: ", error);
99
next(error);
1010
}
1111

12-
}
12+
}

0 commit comments

Comments
 (0)