File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class HttpExceptionFilter implements ExceptionFilter {
15
15
const request = context . getRequest < Request > ( ) ;
16
16
const response = context . getResponse < Response > ( ) ;
17
17
const i18n = getI18nContextFromRequest ( request ) ;
18
- if ( exception . getStatus ( ) === 400 ) response . send ( exception . getResponse ( ) ) ;
18
+ if ( exception . getStatus ( ) === 400 ) return response . send ( exception . getResponse ( ) ) ;
19
19
const statusCode =
20
20
exception instanceof HttpException
21
21
? exception . getStatus ( )
@@ -25,7 +25,7 @@ export class HttpExceptionFilter implements ExceptionFilter {
25
25
lang : i18n . lang ,
26
26
} )
27
27
: 'Internal server error' ;
28
- response . status ( statusCode ) . json ( {
28
+ return response . status ( statusCode ) . json ( {
29
29
statusCode,
30
30
message,
31
31
} ) ;
You can’t perform that action at this time.
0 commit comments