errorMessage
This commit is contained in:
parent
bb9407ad38
commit
aef313bac7
2 changed files with 13 additions and 4 deletions
|
|
@ -85,7 +85,8 @@ export async function createUser(username: string, password: string, opts?: Reco
|
|||
|
||||
if (!res) return false;
|
||||
if (!res.ok) {
|
||||
return Boolean(console.error("Keycloak Error Response: ", await res.json()));
|
||||
// return Boolean(console.error("Keycloak Error Response: ", await res.json()));
|
||||
return await res.json();
|
||||
}
|
||||
|
||||
const path = res.headers.get("Location");
|
||||
|
|
@ -174,7 +175,8 @@ export async function editUser(userId: string, opts: Record<string, any>) {
|
|||
|
||||
if (!res) return false;
|
||||
if (!res.ok) {
|
||||
return Boolean(console.error("Keycloak Error Response: ", await res.json()));
|
||||
// return Boolean(console.error("Keycloak Error Response: ", await res.json()));
|
||||
return await res.json();
|
||||
}
|
||||
|
||||
const path = res.headers.get("Location");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue