aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/services
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src/services')
-rw-r--r--FrontEnd/src/services/user.ts12
1 files changed, 7 insertions, 5 deletions
diff --git a/FrontEnd/src/services/user.ts b/FrontEnd/src/services/user.ts
index bc33d113..2d6b6e33 100644
--- a/FrontEnd/src/services/user.ts
+++ b/FrontEnd/src/services/user.ts
@@ -4,11 +4,13 @@ import { AxiosError } from "axios";
import { UiLogicError } from "@/common";
-import { HttpNetworkError, setHttpToken, axios } from "@/http/common";
import {
- getHttpTokenClient,
- HttpCreateTokenBadCredentialError,
-} from "@/http/token";
+ HttpNetworkError,
+ setHttpToken,
+ axios,
+ HttpBadRequestError,
+} from "@/http/common";
+import { getHttpTokenClient } from "@/http/token";
import { getHttpUserClient, HttpUser, UserPermission } from "@/http/user";
import { pushAlert } from "./alert";
@@ -137,7 +139,7 @@ export class UserService {
}
this.userSubject.next(user);
} catch (e) {
- if (e instanceof HttpCreateTokenBadCredentialError) {
+ if (e instanceof HttpBadRequestError) {
throw new BadCredentialError();
} else {
throw e;