Display error when populated from the backend
This commit is contained in:
parent
f59a9da809
commit
51f5f4c018
1 changed files with 5 additions and 1 deletions
|
@ -130,7 +130,11 @@
|
||||||
try {
|
try {
|
||||||
await groups.actions.save(group)
|
await groups.actions.save(group)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
notifications.error(`Failed to save user group`)
|
if (error.message) {
|
||||||
|
notifications.error(error.message)
|
||||||
|
} else {
|
||||||
|
notifications.error(`Failed to save user group`)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue