Merge pull request #17892 from abpframework/issue-17857

Error handler receives null error
pull/17901/head
Gizem Mutu Kurt 2 years ago committed by GitHub
commit 1b02eb4407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,12 +45,7 @@ export class ErrorHandler {
const errHandler = this.httpErrorHandler(this.injector, error);
const isObservable = errHandler instanceof Observable;
return (isObservable ? errHandler : of(null)).pipe(
catchError(err => {
this.handleError(err);
return of(null);
}),
);
return (isObservable ? errHandler : of(null)).pipe(catchError(err => of(err)));
};
protected sortHttpErrorHandlers(

Loading…
Cancel
Save