Skip to content

Commit cc48b89

Browse files
committed
Fix middleware
1 parent 5f58109 commit cc48b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/middlewares/ErrorHandlerMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class ErrorHandlerMiddleware implements ExpressErrorMiddlewareInterface {
1818
res.json({
1919
name: error.name,
2020
message: error.message,
21-
errors: error['errors'] || [],
21+
errors: error[`errors`] || [],
2222
});
2323

2424
if (this.isProduction) {

0 commit comments

Comments
 (0)