Skip to content

Commit

Permalink
add default status error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhongbo committed Aug 21, 2018
1 parent d44cb89 commit 7a6bdee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/request-interceptor.service.ts
Expand Up @@ -30,6 +30,8 @@ export class RequestInterceptorService implements HttpInterceptor {
return this.handle400Error(error);
case 401:
return this.handle401Error(req, next);
default:
return observableThrowError(error);
}
} else {
return observableThrowError(error);
Expand Down

0 comments on commit 7a6bdee

Please sign in to comment.