mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
fix(microservices): Remove unnecessary exception filter priority changes
Remove the changes to exception filter handling in RPC exceptions handler as the current behavior is the intended behavior according to maintainer feedback. Signed-off-by: snowykte0426 <snowykte0426@naver.com>
This commit is contained in:
@@ -37,12 +37,6 @@ export class RpcExceptionsHandler extends BaseRpcExceptionFilter {
|
||||
exception: T,
|
||||
host: ArgumentsHost,
|
||||
): Observable<any> | null {
|
||||
const filters = this.filters.filter(
|
||||
filter => filter.exceptionMetatypes?.length === 0,
|
||||
);
|
||||
if (filters.length > 0) {
|
||||
return filters[0].func(exception, host);
|
||||
}
|
||||
if (isEmpty(this.filters)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user