Mercurial > gemma
changeset 4869:6b054b91d9b2
backend not reachable as error message etd. Login adjusted
line wrap: on
line diff
--- a/client/src/components/Bottlenecks.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/Bottlenecks.vue Thu Dec 19 09:35:14 2019 +0100 @@ -186,7 +186,7 @@ this.openBottleneck = bottleneck; }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/Login.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/Login.vue Thu Dec 19 09:35:14 2019 +0100 @@ -199,6 +199,13 @@ .catch(error => { this.loginFailed = true; this.submitted = false; + if (!error.response) { + displayError({ + title: "Backend Error", + message: `Backend not reachable` + }); + return; + } const { status, data } = error.response; if (status !== UNAUTHORIZED) { //Unauthorized is handled in alert-div @@ -222,7 +229,7 @@ resetPassword() { if (this.user) { HTTP.post("/users/passwordreset", { user: this.user }).catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/Logs.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/Logs.vue Thu Dec 19 09:35:14 2019 +0100 @@ -158,7 +158,7 @@ this.currentFile = file; }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/Pdftool.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/Pdftool.vue Thu Dec 19 09:35:14 2019 +0100 @@ -241,7 +241,7 @@ ); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -830,7 +830,7 @@ } }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/Search.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/Search.vue Thu Dec 19 09:35:14 2019 +0100 @@ -255,7 +255,7 @@ }) .then(() => {}) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -298,7 +298,7 @@ this.searchResults = response.data; }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/Sidebar.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/Sidebar.vue Thu Dec 19 09:35:14 2019 +0100 @@ -158,7 +158,7 @@ } }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/fairway/AvailableFairwayDepth.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Thu Dec 19 09:35:14 2019 +0100 @@ -172,7 +172,7 @@ } }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -364,7 +364,7 @@ ); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/fairway/AvailableFairwayDepthDialogue.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/fairway/AvailableFairwayDepthDialogue.vue Thu Dec 19 09:35:14 2019 +0100 @@ -768,7 +768,7 @@ ); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -813,7 +813,7 @@ this.$store.commit("application/paneSetup", "AVAILABLEFAIRWAYDEPTH"); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/fairway/BottleneckDialogue.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/fairway/BottleneckDialogue.vue Thu Dec 19 09:35:14 2019 +0100 @@ -756,7 +756,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -815,7 +815,7 @@ }, mounted() { this.$store.dispatch("usermanagement/loadUsers").catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/fairway/Fairwayprofile.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/fairway/Fairwayprofile.vue Thu Dec 19 09:35:14 2019 +0100 @@ -401,7 +401,7 @@ ); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -836,7 +836,7 @@ } }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/gauge/Gauges.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/gauge/Gauges.vue Thu Dec 19 09:35:14 2019 +0100 @@ -204,7 +204,7 @@ this.$store.dispatch("gauges/loadNashSutcliffe") ]) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -235,7 +235,7 @@ this.$store.dispatch("gauges/loadYearWaterlevels") ]) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/gauge/HydrologicalConditions.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/gauge/HydrologicalConditions.vue Thu Dec 19 09:35:14 2019 +0100 @@ -320,7 +320,7 @@ ); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -1142,7 +1142,7 @@ } }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/gauge/Waterlevel.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/gauge/Waterlevel.vue Thu Dec 19 09:35:14 2019 +0100 @@ -311,7 +311,7 @@ ); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -1295,7 +1295,7 @@ } }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/importconfiguration/Import.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/importconfiguration/Import.vue Thu Dec 19 09:35:14 2019 +0100 @@ -125,7 +125,7 @@ this.$store .dispatch("importschedule/loadSchedules") .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -146,7 +146,7 @@ this.$store.commit("importschedule/setEditMode"); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -169,7 +169,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -203,7 +203,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -288,7 +288,7 @@ this.getSchedules(); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/importconfiguration/ScheduledImports.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/importconfiguration/ScheduledImports.vue Thu Dec 19 09:35:14 2019 +0100 @@ -833,7 +833,7 @@ }); this.closeDetailview(); this.$store.dispatch("importschedule/loadSchedules").catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -845,7 +845,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -921,7 +921,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -1007,7 +1007,7 @@ this.$store .dispatch("importschedule/loadSchedules") .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -1019,7 +1019,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -1045,7 +1045,7 @@ this.$store .dispatch("importschedule/loadSchedules") .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -1057,7 +1057,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/importconfiguration/types/ApprovedGaugeMeasurement.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/importconfiguration/types/ApprovedGaugeMeasurement.vue Thu Dec 19 09:35:14 2019 +0100 @@ -142,7 +142,7 @@ this.back(); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/importconfiguration/types/Soundingresults.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/importconfiguration/types/Soundingresults.vue Thu Dec 19 09:35:14 2019 +0100 @@ -272,7 +272,7 @@ this.initialState(); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -316,7 +316,7 @@ this.messages = response.data.messages; }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -359,7 +359,7 @@ this.initialState(); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/importoverview/ImportOverview.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/importoverview/ImportOverview.vue Thu Dec 19 09:35:14 2019 +0100 @@ -437,7 +437,7 @@ }) .catch(error => { this.loading = false; - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -509,7 +509,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -531,7 +531,7 @@ mounted() { this.loadUpdatedLogs(); this.$store.dispatch("usermanagement/loadUsers").catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/importoverview/LogEntry.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/importoverview/LogEntry.vue Thu Dec 19 09:35:14 2019 +0100 @@ -162,7 +162,7 @@ this.$store.commit("imports/setCurrentDetails", response.data); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/importoverview/SectionDetails.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/importoverview/SectionDetails.vue Thu Dec 19 09:35:14 2019 +0100 @@ -103,7 +103,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/importoverview/StretchDetails.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/importoverview/StretchDetails.vue Thu Dec 19 09:35:14 2019 +0100 @@ -134,7 +134,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/layers/Layerselect.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/layers/Layerselect.vue Thu Dec 19 09:35:14 2019 +0100 @@ -175,7 +175,7 @@ reader.readAsDataURL(response.data); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/map/Map.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/map/Map.vue Thu Dec 19 09:35:14 2019 +0100 @@ -266,7 +266,7 @@ }) .catch(error => { this.mountMap(); - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -459,7 +459,7 @@ this.loadStyles(); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/sections/SectionForm.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/sections/SectionForm.vue Thu Dec 19 09:35:14 2019 +0100 @@ -334,7 +334,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/sections/Sections.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/sections/Sections.vue Thu Dec 19 09:35:14 2019 +0100 @@ -174,7 +174,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -188,7 +188,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -234,7 +234,7 @@ this.$store .dispatch("imports/loadSections") .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/stretches/StretchForm.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/stretches/StretchForm.vue Thu Dec 19 09:35:14 2019 +0100 @@ -86,7 +86,7 @@ this.initialState(); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/stretches/Stretches.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/stretches/Stretches.vue Thu Dec 19 09:35:14 2019 +0100 @@ -189,7 +189,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -203,7 +203,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -249,7 +249,7 @@ this.$store .dispatch("imports/loadStretches") .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/systemconfiguration/PDFTemplates.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/systemconfiguration/PDFTemplates.vue Thu Dec 19 09:35:14 2019 +0100 @@ -163,7 +163,7 @@ element.click(); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -292,7 +292,7 @@ this.templates = response.data; }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/usermanagement/Userdetail.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/usermanagement/Userdetail.vue Thu Dec 19 09:35:14 2019 +0100 @@ -325,7 +325,7 @@ .then(() => { this.submitted = false; this.$store.dispatch("usermanagement/loadUsers").catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -338,7 +338,7 @@ }) .catch(error => { this.submitted = false; - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;
--- a/client/src/components/usermanagement/Usermanagement.vue Tue Dec 17 15:05:56 2019 +0100 +++ b/client/src/components/usermanagement/Usermanagement.vue Thu Dec 19 09:35:14 2019 +0100 @@ -211,7 +211,7 @@ }) .catch(error => { this.loginFailed = true; - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -252,7 +252,7 @@ this.$store .dispatch("usermanagement/loadUsers") .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -264,7 +264,7 @@ }); }) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`; @@ -309,7 +309,7 @@ .dispatch("usermanagement/loadUsers") .then(next) .catch(error => { - let message = "Problems with backend"; + let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; message = `${status}: ${data.message || data}`;