From 52a6451a2ddc349a0918a9329049f6e4cb1193cd Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Mon, 4 Sep 2023 15:37:39 -0600 Subject: [PATCH] remove technical details from user-facing messages --- src/views/DiscoverView.vue | 6 ++++-- src/views/ProjectsView.vue | 5 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/DiscoverView.vue b/src/views/DiscoverView.vue index 392cc95ef..689fd2878 100644 --- a/src/views/DiscoverView.vue +++ b/src/views/DiscoverView.vue @@ -312,12 +312,13 @@ export default class DiscoverView extends Vue { if (response.status !== 200) { const details = await response.text(); + console.log("Problem with full search:", details); this.$notify( { group: "alert", type: "danger", title: "Error", - text: `There was a problem accessing the server. Please try again later. (${details})`, + text: `There was a problem accessing the server. Try again later.`, }, -1, ); @@ -386,12 +387,13 @@ export default class DiscoverView extends Vue { if (response.status !== 200) { const details = await response.text(); + console.log("Problem with nearby search:", details); this.$notify( { group: "alert", type: "danger", title: "Error", - text: `There was a problem accessing the server. Please try again later. (${details})`, + text: "There was a problem accessing the server. Try again later.", }, -1, ); diff --git a/src/views/ProjectsView.vue b/src/views/ProjectsView.vue index d54b94dee..1d87548ee 100644 --- a/src/views/ProjectsView.vue +++ b/src/views/ProjectsView.vue @@ -141,14 +141,13 @@ export default class ProjectsView extends Vue { } // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (error: any) { - console.error("Got error loading projects:", error.message); - const additional = error.message ? " " + error.message : ""; + console.error("Got error loading projects:", error.message || error); this.$notify( { group: "alert", type: "danger", title: "Error", - text: "Got an error loading projects." + additional, + text: "Got an error loading projects.", }, -1, );