Mercurial > gemma
comparison client/src/components/importoverview/LogEntry.vue @ 4869:6b054b91d9b2
backend not reachable as error message etd. Login adjusted
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 19 Dec 2019 09:35:14 +0100 |
parents | 008bc1ae8897 |
children | e89c1140f0a8 |
comparison
equal
deleted
inserted
replaced
4868:008bc1ae8897 | 4869:6b054b91d9b2 |
---|---|
160 .then(response => { | 160 .then(response => { |
161 this.$store.commit("imports/showDetailsFor", id); | 161 this.$store.commit("imports/showDetailsFor", id); |
162 this.$store.commit("imports/setCurrentDetails", response.data); | 162 this.$store.commit("imports/setCurrentDetails", response.data); |
163 }) | 163 }) |
164 .catch(error => { | 164 .catch(error => { |
165 let message = "Problems with backend"; | 165 let message = "Backend not reachable"; |
166 if (error.response) { | 166 if (error.response) { |
167 const { status, data } = error.response; | 167 const { status, data } = error.response; |
168 message = `${status}: ${data.message || data}`; | 168 message = `${status}: ${data.message || data}`; |
169 } | 169 } |
170 displayError({ | 170 displayError({ |