Browse Source
Merge pull request #17983 from abpframework/issue/17982
fix canHandle method to correctly handle error status code
pull/17987/head
Masum ULU
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts
|
|
|
@ -57,9 +57,9 @@ export class StatusCodeErrorHandlerService implements CustomHttpErrorHandlerServ |
|
|
|
this.createErrorComponentService.execute(instance); |
|
|
|
} |
|
|
|
|
|
|
|
canHandle({ status }): boolean { |
|
|
|
this.status = status || 0; |
|
|
|
return this.handledStatusCodes.indexOf(status) > -1; |
|
|
|
canHandle(error): boolean { |
|
|
|
this.status = error?.status || 0; |
|
|
|
return this.handledStatusCodes.indexOf(this.status) > -1; |
|
|
|
} |
|
|
|
|
|
|
|
execute(): void { |
|
|
|
|