From e739d0be7ccb3f3d85720ae600b0cfe89df67875 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 22 Dec 2023 09:19:36 -0700 Subject: [PATCH] update error messages to be less... confusing --- src/components/GiftedDialog.vue | 4 +--- src/components/OfferDialog.vue | 4 +--- src/views/ContactAmountsView.vue | 3 ++- src/views/ContactGiftingView.vue | 3 ++- src/views/HomeView.vue | 3 ++- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/GiftedDialog.vue b/src/components/GiftedDialog.vue index 1dfb153..e236246 100644 --- a/src/components/GiftedDialog.vue +++ b/src/components/GiftedDialog.vue @@ -123,9 +123,7 @@ export default class GiftedDialog extends Vue { group: "alert", type: "danger", title: "Error", - text: - err.message || - "There was an error retrieving the latest sweet, sweet action.", + text: err.message || "There was an error retrieving your settings.", }, -1, ); diff --git a/src/components/OfferDialog.vue b/src/components/OfferDialog.vue index 0ab3700..b61bde8 100644 --- a/src/components/OfferDialog.vue +++ b/src/components/OfferDialog.vue @@ -105,9 +105,7 @@ export default class OfferDialog extends Vue { group: "alert", type: "danger", title: "Error", - text: - err.message || - "There was an error retrieving the latest sweet, sweet action.", + text: err.message || "There was an error retrieving your settings.", }, -1, ); diff --git a/src/views/ContactAmountsView.vue b/src/views/ContactAmountsView.vue index a3dfc73..52412ae 100644 --- a/src/views/ContactAmountsView.vue +++ b/src/views/ContactAmountsView.vue @@ -178,6 +178,7 @@ export default class ContactAmountssView extends Vue { } // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (err: any) { + console.log("Error retrieving settings or gives.", err); this.$notify( { group: "alert", @@ -185,7 +186,7 @@ export default class ContactAmountssView extends Vue { title: "Error", text: err.userMessage || - "There was an error retrieving the latest sweet, sweet action.", + "There was an error retrieving your settings and/or contacts and/or gives.", }, -1, ); diff --git a/src/views/ContactGiftingView.vue b/src/views/ContactGiftingView.vue index 2d2bcb8..35bec25 100644 --- a/src/views/ContactGiftingView.vue +++ b/src/views/ContactGiftingView.vue @@ -145,6 +145,7 @@ export default class ContactGiftingView extends Vue { this.allContacts = await db.contacts.toArray(); // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (err: any) { + console.log("Error retrieving settings & contacts:", err); this.$notify( { group: "alert", @@ -152,7 +153,7 @@ export default class ContactGiftingView extends Vue { title: "Error", text: err.message || - "There was an error retrieving the latest sweet, sweet action.", + "There was an error retrieving your settings and/or contacts.", }, -1, ); diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 3c973b3..daf47c4 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -234,6 +234,7 @@ export default class HomeView extends Vue { // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (err: any) { + console.log("Error retrieving settings and/or feed.", err); this.$notify( { group: "alert", @@ -241,7 +242,7 @@ export default class HomeView extends Vue { title: "Error", text: err.userMessage || - "There was an error retrieving the latest sweet, sweet action.", + "There was an error retrieving your settings and/or the latest activity.", }, -1, );