Browse Source

update error messages to be less... confusing

kb/add-usage-guide
Trent Larson 11 months ago
parent
commit
e739d0be7c
  1. 4
      src/components/GiftedDialog.vue
  2. 4
      src/components/OfferDialog.vue
  3. 3
      src/views/ContactAmountsView.vue
  4. 3
      src/views/ContactGiftingView.vue
  5. 3
      src/views/HomeView.vue

4
src/components/GiftedDialog.vue

@ -123,9 +123,7 @@ export default class GiftedDialog extends Vue {
group: "alert", group: "alert",
type: "danger", type: "danger",
title: "Error", title: "Error",
text: text: err.message || "There was an error retrieving your settings.",
err.message ||
"There was an error retrieving the latest sweet, sweet action.",
}, },
-1, -1,
); );

4
src/components/OfferDialog.vue

@ -105,9 +105,7 @@ export default class OfferDialog extends Vue {
group: "alert", group: "alert",
type: "danger", type: "danger",
title: "Error", title: "Error",
text: text: err.message || "There was an error retrieving your settings.",
err.message ||
"There was an error retrieving the latest sweet, sweet action.",
}, },
-1, -1,
); );

3
src/views/ContactAmountsView.vue

@ -178,6 +178,7 @@ export default class ContactAmountssView extends Vue {
} }
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (err: any) { } catch (err: any) {
console.log("Error retrieving settings or gives.", err);
this.$notify( this.$notify(
{ {
group: "alert", group: "alert",
@ -185,7 +186,7 @@ export default class ContactAmountssView extends Vue {
title: "Error", title: "Error",
text: text:
err.userMessage || 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, -1,
); );

3
src/views/ContactGiftingView.vue

@ -145,6 +145,7 @@ export default class ContactGiftingView extends Vue {
this.allContacts = await db.contacts.toArray(); this.allContacts = await db.contacts.toArray();
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (err: any) { } catch (err: any) {
console.log("Error retrieving settings & contacts:", err);
this.$notify( this.$notify(
{ {
group: "alert", group: "alert",
@ -152,7 +153,7 @@ export default class ContactGiftingView extends Vue {
title: "Error", title: "Error",
text: text:
err.message || err.message ||
"There was an error retrieving the latest sweet, sweet action.", "There was an error retrieving your settings and/or contacts.",
}, },
-1, -1,
); );

3
src/views/HomeView.vue

@ -234,6 +234,7 @@ export default class HomeView extends Vue {
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (err: any) { } catch (err: any) {
console.log("Error retrieving settings and/or feed.", err);
this.$notify( this.$notify(
{ {
group: "alert", group: "alert",
@ -241,7 +242,7 @@ export default class HomeView extends Vue {
title: "Error", title: "Error",
text: text:
err.userMessage || 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, -1,
); );

Loading…
Cancel
Save