File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ export class ErrorsInterceptor implements NestInterceptor {
236
236
return next
237
237
.handle ()
238
238
.pipe (
239
- catchError (err => throwError (new BadGatewayException ())),
239
+ catchError (err => throwError (() => new BadGatewayException ())),
240
240
);
241
241
}
242
242
}
@@ -251,7 +251,7 @@ export class ErrorsInterceptor {
251
251
return next
252
252
.handle ()
253
253
.pipe (
254
- catchError (err => throwError (new BadGatewayException ())),
254
+ catchError (err => throwError (() => new BadGatewayException ())),
255
255
);
256
256
}
257
257
}
@@ -311,9 +311,9 @@ export class TimeoutInterceptor implements NestInterceptor {
311
311
timeout (5000 ),
312
312
catchError (err => {
313
313
if (err instanceof TimeoutError ) {
314
- return throwError (new RequestTimeoutException ());
314
+ return throwError (() => new RequestTimeoutException ());
315
315
}
316
- return throwError (err );
316
+ return throwError (() => err );
317
317
}),
318
318
);
319
319
};
@@ -330,9 +330,9 @@ export class TimeoutInterceptor {
330
330
timeout (5000 ),
331
331
catchError (err => {
332
332
if (err instanceof TimeoutError ) {
333
- return throwError (new RequestTimeoutException ());
333
+ return throwError (() => new RequestTimeoutException ());
334
334
}
335
- return throwError (err );
335
+ return throwError (() => err );
336
336
}),
337
337
);
338
338
};
You can’t perform that action at this time.
0 commit comments