Browse Source

Merge pull request #17892 from abpframework/issue-17857

Error handler receives null error
pull/17901/head
Gizem Mutu Kurt 3 years ago
committed by GitHub
parent
commit
1b02eb4407
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      npm/ng-packs/packages/theme-shared/src/lib/handlers/error.handler.ts

7
npm/ng-packs/packages/theme-shared/src/lib/handlers/error.handler.ts

@ -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