mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +00:00
Show proper error message if username already used (#7866)
This commit is contained in:
parent
ca7b8b8b4c
commit
faaef31b9f
@ -241,7 +241,7 @@ export class DialogAddUser extends LitElement {
|
|||||||
user = userResponse.user;
|
user = userResponse.user;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this._loading = false;
|
this._loading = false;
|
||||||
this._error = err.code;
|
this._error = err.message;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ export class DialogAddUser extends LitElement {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
await deleteUser(this.hass, user.id);
|
await deleteUser(this.hass, user.id);
|
||||||
this._loading = false;
|
this._loading = false;
|
||||||
this._error = err.code;
|
this._error = err.message;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user