From 51f5f4c018b72d92cbb3bb9e73fa3267d9b32af9 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 8 May 2023 11:53:14 +0200 Subject: [PATCH] Display error when populated from the backend --- .../src/pages/builder/portal/users/groups/[groupId].svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte index 1be019b83e..0c139ad8be 100644 --- a/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte +++ b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte @@ -130,7 +130,11 @@ try { await groups.actions.save(group) } catch (error) { - notifications.error(`Failed to save user group`) + if (error.message) { + notifications.error(error.message) + } else { + notifications.error(`Failed to save user group`) + } } }