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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
6 deletions
-
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( |
|
|
|
|