From 1ed8a30826eab6fb2019fcb3769732fb0b70553e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Feb 2026 11:04:51 +0000 Subject: [PATCH] Improve error messages based on code review feedback Co-authored-by: jepp9350 <17977216+jepp9350@users.noreply.github.com> --- src/i18n/locales/da.json | 2 +- src/i18n/locales/en.json | 2 +- src/views/dashboards/userDashboard/profile/UserProfile.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/i18n/locales/da.json b/src/i18n/locales/da.json index 15fd29cd..5c1644b8 100644 --- a/src/i18n/locales/da.json +++ b/src/i18n/locales/da.json @@ -31,7 +31,7 @@ "error": { "title": "Fejl", "validation_error": "Der opstod en fejl under validering af adgangskoden.", - "generic_error": "Der opstod en fejl" + "save_email_error": "Der opstod en fejl under gemme af e-mailadressen." } }, "common": { diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 6c856a10..6a44ca70 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -31,7 +31,7 @@ "error": { "title": "Error", "validation_error": "An error occurred while validating the password.", - "generic_error": "An error occurred" + "save_email_error": "An error occurred while saving the email address." } }, "common": { diff --git a/src/views/dashboards/userDashboard/profile/UserProfile.vue b/src/views/dashboards/userDashboard/profile/UserProfile.vue index 65995e51..53914175 100644 --- a/src/views/dashboards/userDashboard/profile/UserProfile.vue +++ b/src/views/dashboards/userDashboard/profile/UserProfile.vue @@ -114,7 +114,7 @@ const onSaveEmail = async (password) => { } else { Swal.fire({ title: t('profile.error.title'), - text: t('profile.error.generic_error'), + text: t('profile.error.save_email_error'), icon: 'error', }); }