Mercurial > gemma
comparison client/src/components/sections/SectionForm.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 | 84d01a536bec |
comparison
equal
deleted
inserted
replaced
4868:008bc1ae8897 | 4869:6b054b91d9b2 |
---|---|
332 this.$parent.loading = false; | 332 this.$parent.loading = false; |
333 this.$parent.showForm = false; | 333 this.$parent.showForm = false; |
334 }); | 334 }); |
335 }) | 335 }) |
336 .catch(error => { | 336 .catch(error => { |
337 let message = "Problems with backend"; | 337 let message = "Backend not reachable"; |
338 if (error.response) { | 338 if (error.response) { |
339 const { status, data } = error.response; | 339 const { status, data } = error.response; |
340 message = `${status}: ${data.message || data}`; | 340 message = `${status}: ${data.message || data}`; |
341 } | 341 } |
342 displayError({ | 342 displayError({ |